-
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
Application stopped at UIWindow creation while running tests on simulator #341
Comments
Hello, |
Have similar problem
|
Please provide the information requested. |
Quite busy these days, I m going to provide further information as soon as possible. Thanks for the interest. |
i have the same error. app starts and close instantly.
|
@jykun How did you determine your issue is related to this one? Please provide the device log. |
@LeoNatan
after long time, will show:
ps: my colleague can run the same project, i can not run. i can test detox/example/demo-react-native. |
That's too vague. As you can see, the output tells you what to do: This is the device log. Provide that and see if it is related to this issue or not. |
I've tried to reproduce, and having the following one inside my @UIApplicationMain
class AppDelegate: BaseAppDelegate {
override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
window = UIWindow(frame: UIScreen.main.bounds)
/* ... */
}
} This line throws : Like a
|
Interesting, thanks. |
Fixed. Will be included in next build. CC @rotemmiz |
I m not sure if the issue is related, but we're having a Local detox Simulator logs Xcode breakpoint error |
Description
We're trying to use Detox in a quite big hybrid application but it seems an error occured while running our tests. After launching the simulator, the application starts and close instantly, showing us the following logs :
The error occured while running our tests. The application starts and close automatically with the following log from test side :
After some investigation, we manage to use Xcode Breakpoints to isolate the problem. It appears inside our
AppDelegate
:What we did to avoid this issue
To ensure that Detox works outside our context but with the same constraint, we manage to create two different projects and have written tests for them.
The first one a is fully written with Swift 3, and the second one is a fully React Native project.
We manage to make all the test pass really really easily.
We've also taken care about different issues related to Firebase (that we're using inside our app, at firebase#issues).
The closest issue seems to be #152, but the Swift PR #277 doesn't help us.
Node, Device, Xcode and macOS Versions
v8.4.0
Simulator iPhone 7
v8.3.3
v10.12.6
v3
v5.8.1
The text was updated successfully, but these errors were encountered: