Skip to content
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

When application.start() is called twice on iOS, a meaningful error should be thrown #1007

Closed
ikoevska opened this issue Oct 30, 2015 · 1 comment · Fixed by #1017
Closed

Comments

@ikoevska
Copy link
Contributor

iOS apps which have a double initialization of application crash with no error.

When you inspect the system log for the device (in my case the iOS Simulator), you see Oct 30 17:27:00 KOEVSKAMAC.local jasmine[25320]: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'

However, in such cases, some kind of error should be shown in the console of the CLI or on the device, or both.

In my case this occurred while I was playing with unit testing. I had a second require for app.js inside my tests and when I tried running the unit tests on app, the app kept crashing with no meaningful error.

@ikoevska ikoevska added this to the 1.5 milestone Oct 30, 2015
@N3ll N3ll removed this from the 1.5 milestone Nov 2, 2015
@enchev enchev self-assigned this Nov 2, 2015
@enchev enchev added this to the 1.5 milestone Nov 2, 2015
@enchev enchev added the done label Nov 2, 2015
@lock
Copy link

lock bot commented Aug 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot unassigned enchev Aug 30, 2019
@lock lock bot locked and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants