FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

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

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

Description

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL