-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iOS test hangs on splash screen and crashes. #1042
Comments
I also tried disabling all of the setTimeOut methods in my app, as mentioned in some other similiar issue, but it had no effects. When starting the metro bundler before running tests, it also does not start loading JS. |
What is the crash? I don't see a crash stack trace in the logs you posted. |
In the future, please use Stack Overflow for usage questions. Once you have all the information and still think it's a Detox issue, only then open an issue here. |
Thanks for responding. |
Try following https://github.com/wix/Detox/blob/master/docs/Guide.DebuggingInXcode.md and see if something appears in Xcode. |
I am not sure what I do differently now, but after messing around with the detox server without result and finally reverting back to my initial state, it now load JS when running "detox test" and can detect simple testID's. Most tests deeper into the app still hang for some reason. But that's probably a different problem. |
Strange. Thanks for letting us know. |
One of the biggest and main problems must have been that on my landing page, I have a fading background (using https://github.com/chagasaway/react-native-fading-slides) which is done with the Animated library, and this hangs the detox tests completely. When I remove it, then everything works. |
Description
React Native iOS build hangs on splash screen, then after about 5 seconds, the app closes.
Also the metro bundler starts with detox build command, but no JS will start loading from that.
In detox init, it hangs on beforeAll.
Detox conf
"detox": {
"specs": "e2e",
"configurations": {
"ios.sim.release": {
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/Cashpoint_Native.app",
"build": "export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -project ios/Cashpoint_Native.xcodeproj -UseNewBuildSystem=NO -scheme Cashpoint_Native -configuration Release -sdk iphonesimulator -derivedDataPath ios/build -quiet",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
"ios.sim.debug": {
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/Cashpoint_Native.app",
"build": "xcodebuild -project ios/Cashpoint_Native.xcodeproj -UseNewBuildSystem=NO -scheme Cashpoint_Native -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
"type": "ios.simulator",
"name": "iPhone 7 Plus"
},
"android.emu.debug": {
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",
"build": "pushd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && popd",
"type": "android.emulator",
"name": "Nexus 5X API 28 x86"
},
"android.emu.release": {
"binaryPath": "android/app/build/outputs/apk/release/app-release.apk",
"build": "pushd android && ./gradlew assembleRelease assembleAndroidTest -DtestBuildType=release && popd",
"type": "android.emulator",
"name": "Nexus 5X API 28 x86"
}
},
"test-runner": "jest",
"runner-config": "e2e/config.json"
}
Detox, Node, Device, Xcode and macOS Versions
Device and verbose Detox logs
The text was updated successfully, but these errors were encountered: