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.
Reactions are currently unavailable
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.