Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Crash when launching applications on iPhone 6 in debug mode #1362
From @manijak on December 6, 2015 21:38
I just updated my iPhone 6 to iOS 9.1, and I am having issues in running the app from device.
If I use
If I deploy the app directly from xcode 7.1.1, everything runs fine. App does not crash, no errors.
I managed to find the crashlog on the device, here is the exception part, but it doesn't say much to me.
Copied from original issue: NativeScript/ios-runtime#431
The reason for this seems to be that the CLI is building for armv7 architecture but Xcode for arm64. Restricting the architecture to armv7 only, crashes the app even when launched through Xcode.
Building in release always builds both architectures, so that explains why it runs with
@fealebenpae My suggestion is that the CLI builds for the active device architecture only in debug mode. Does this make sense?
From @fealebenpae on December 21, 2015 15:53
Unfortunately I don't believe the CLI has the same idea of active device as Xcode. The CLI could generally poll for a connected device before doing a build and constraining to architecture of the device the app will run on, but I think this is beyond the scope of the iOS runtime itself. Perhaps we can move this to the CLI repository, having narrowed down the source of the problem?
referenced this issue
Dec 22, 2015
Ok, CLI sets ARCHS to armv7 and arm64 for both debug and release builds, but in debug build the