question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash when launching applications on iPhone 6 in debug mode

See original GitHub issue

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 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:closed
  • Created 8 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rosen-vladimirovcommented, Jan 6, 2016

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).

0reactions
jasssonpetcommented, Dec 22, 2015

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found