ios-jsc: iOS10 + XCode 8 crash on launch

From @njl07 on September 14, 2016 11:40

Which platform(s) does your issue occur on?

iOS10 with XCode 8

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.4.0-2016-09-12-6625
  • Cross-platform modules: 2.4.0 but with manually compilation of your latest master repository after clone it
  • Runtime(s): "tns-ios" 2.2.1
  • Plugin(s):
"dependencies": {
    "@angular/common": "2.0.0-rc.7",
    "@angular/compiler": "2.0.0-rc.7",
    "@angular/core": "2.0.0-rc.7",
    "@angular/forms": "2.0.0-rc.7",
    "@angular/http": "2.0.0-rc.7",
    "@angular/platform-browser": "2.0.0-rc.7",
    "@angular/platform-browser-dynamic": "2.0.0-rc.7",
    "@angular/platform-server": "2.0.0-rc.7",
    "@angular/router": "3.0.0-rc.3",
    "nativescript-angular": "^0.6.1-2016-09-13-909",
    "nativescript-ng2-translate": "^1.2.0",
    "nativescript-slides": "^2.1.5",
    "ng2-translate": "^2.4.4",
    "reflect-metadata": "^0.1.8",
    "rxjs": "5.0.0-beta.12",
    "tns-core-modules": "file:///Users/akanass/Programmation/NativeScript/bin/dist/tns-core-modules",
    "zone.js": "^0.6.21"
  },
  "devDependencies": {
    "babel-traverse": "^6.15.0",
    "babel-types": "^6.15.0",
    "babylon": "^6.9.1",
    "lazy": "^1.0.11",
    "nativescript-dev-sass": "^0.2.0",
    "nativescript-dev-typescript": "^0.3.2",
    "typescript": "^1.8.10"
  }

Please tell us how to recreate the issue in as much detail as possible.

Just build the application with command line:

$ tns build ios

Open generated project in XCode 8 and run application in simulator 9.3 to have the following error:

NativeScript loaded bundle file:///Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%209.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework
NativeScript loaded bundle file:///Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%209.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1   0x103837c67 -[TNSRuntime executeModule:]
2   0x1033e36d2 main
3   0x1071d092d start
4   0x1
JavaScript stack trace:
1   @file:///app/tns_modules/utils/utils.js:139:90
JavaScript error:
file:///app/tns_modules/utils/utils.js:139:90: JS ERROR TypeError: undefined is not an object (evaluating 'getter(UIDevice, UIDevice.currentDevice).systemVersion')

Open generated project in XCode 8 and run application in simulator 10.0 to have the following error:

dyld: Library not loaded: @rpath/TKLiveSync.framework/TKLiveSync
  Referenced from: /Users/akanass/Library/Developer/CoreSimulator/Devices/03217A26-5824-44A8-82F2-D392B21CE431/data/Containers/Bundle/Application/BA921CA0-C029-4809-AFC3-DD4FEEE7DFA8/sfeirquest.app/sfeirquest
  Reason: no suitable image found.  Did find:
    /Users/akanass/Library/Developer/CoreSimulator/Devices/03217A26-5824-44A8-82F2-D392B21CE431/data/Containers/Bundle/Application/BA921CA0-C029-4809-AFC3-DD4FEEE7DFA8/sfeirquest.app/Frameworks/TKLiveSync.framework/TKLiveSync: required code signature missing for '/Users/akanass/Library/Developer/CoreSimulator/Devices/03217A26-5824-44A8-82F2-D392B21CE431/data/Containers/Bundle/Application/BA921CA0-C029-4809-AFC3-DD4FEEE7DFA8/sfeirquest.app/Frameworks/TKLiveSync.framework/TKLiveSync'

Thanks a lot for your help because I can’t continue to develop my application like this and I must release it for a big event last week and it’s not good now.

Best regards.

Copied from original issue: NativeScript/NativeScript#2717

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 40 (17 by maintainers)

Most upvoted comments

I am having this same issue. I have tried all of the suggestions without any luck. Running Sierra 10.12 with xCode 8.0

Build works on Android, but ios returns this error…

Project successfully built Successfully deployed on device with identifier 'FE47600F-9AC7-4192-BA8E-9C8099FA53B3'. Oct 8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 1 0x1082378d7 -[TNSRuntime executeModule:] Oct 8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 2 0x107da86d2 main Oct 8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 3 0x10c4d068d start Oct 8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 4 0x1 Oct 8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: file:///app/tns_modules/utils/utils.js:130:72: JS ERROR TypeError: UIDevice.currentDevice is not a function. (In 'UIDevice.currentDevice()', 'UIDevice.currentDevice' is an instance of UIDevice) Oct 8 03:52:11 MacBook-Pro com.apple.CoreSimulator.SimDevice.FE47600F-9AC7-4192-BA8E-9C8099FA53B3.launchd_sim[23125] (UIKitApplication:com.telerik.TelerikNEXT[0xcde1][23478]): Service exited due to Segmentation fault: 11

Can someone please help me find a workaround?

From @njl07 on September 14, 2016 12:18

Thanks four your answer but iOS 10 is released this night and updated on all my devices

Very nice but I think, when you told about migration, just explain how to do this:

  • go to project
  • delete tns-core-modules
  • reinstall it
  • same for ios-runtime
  • and reinstall nativescript in global

I think it’s important to have the complete workflow to be sure all peoples understand.

I’m very interesting by your product and if I can help it will be a pleasure.

In CLI, I think resource generator command line will be a plus by example … and I’m a big fan of NG2 so if I can join you it will be nice.

Thanks again for your works