Crash when launching applications on iPhone 6 in debug mode
See original GitHub issueFrom @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 tns deploy ios
or tns run ios
or tns debug ios
I get the app deployed successfully message, but the app crashes as soon as it starts. No error or exception in the terminal…
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.
Date/Time: 2015-12-06 22:04:43.43 +0100
Launch Time: 2015-12-06 22:04:42.42 +0100
OS Version: iOS 9.1 (13B143)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Subtype: KERN_PROTECTION_FAILURE at 0x0000000015d0e070
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 ??? 0x15d0e070 0 + 366010480
1 CoreFoundation 0x2759096b 0x274e7000 + 694635
2 CoreFoundation 0x27590741 0x274e7000 + 694081
3 CoreFoundation 0x275e4ab3 0x274e7000 + 1039027
4 CoreFoundation 0x274f1f3b 0x274e7000 + 44859
5 Foundation 0x282dce27 0x282d7000 + 24103
6 UIKit 0x2b9ac579 0x2b6fd000 + 2815353
7 UIKit 0x2b9b0285 0x2b6fd000 + 2830981
8 UIKit 0x2b9c3b55 0x2b6fd000 + 2911061
9 UIKit 0x2b9ad7a7 0x2b6fd000 + 2820007
Copied from original issue: NativeScript/ios-runtime#431
Issue Analytics
- State:
- Created 8 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
app crashes at launch as release b… | Apple Developer Forums
I have imported ios-charts in my Objective-C project, and running it in debug mode is fine. However, today I tried to archive and...
Read more >App crashes as release build on iPad/iPhone 6-iOS 9.2
App crashes as release build on iPad/iPhone 6-iOS 9.2 - but debugging is fine. I have Swift 3 project (using tab bar project...
Read more >iOS application crashes on start w… | Apple Developer Forums
Hello, We are experiencing a weird crash on iPad when the game starts and we don't know what's causing it. We narrowed down...
Read more >Diagnosing issues using crash reports and device logs
To debug a problem using a crash report: Build your app with symbol information and retain the Xcode archive before distributing the app....
Read more >App crashing immediately on start up after upgrading to iOS12.
Running fine in simulator but crashes in device. No crash logs recorded. In line error shown after launching the app Thread 1: EXC_BAD_ACCESS...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok, CLI sets ARCHS to armv7 and arm64 for both debug and release builds, but in debug build the
Build Active Architecture Only
is set to Yes.ios-runtime
have applied a fix, which allows iPhone 6 to run armv7 architecture - it will be included in 1.6.0 release. Anyway CLI should check attached devices type and build for correct architectures. At the moment, the only workaround is to use release build of the application (pass--release
flag).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?