{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/650","repository_url":"https://api.github.com/repos/NativeScript/ios-runtime","labels_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/650/comments","events_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/650/events","html_url":"https://github.com/NativeScript/ios-runtime/issues/650","id":176892569,"number":650,"title":"iOS10 + XCode 8 crash on launch","user":{"login":"NickIliev","id":18008302,"avatar_url":"https://avatars.githubusercontent.com/u/18008302?v=3","gravatar_id":"","url":"https://api.github.com/users/NickIliev","html_url":"https://github.com/NickIliev","followers_url":"https://api.github.com/users/NickIliev/followers","following_url":"https://api.github.com/users/NickIliev/following{/other_user}","gists_url":"https://api.github.com/users/NickIliev/gists{/gist_id}","starred_url":"https://api.github.com/users/NickIliev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickIliev/subscriptions","organizations_url":"https://api.github.com/users/NickIliev/orgs","repos_url":"https://api.github.com/users/NickIliev/repos","events_url":"https://api.github.com/users/NickIliev/events{/privacy}","received_events_url":"https://api.github.com/users/NickIliev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/ios-runtime/labels/iOS","name":"iOS","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":34,"created_at":"2016-09-14T12:20:43Z","updated_at":"2016-10-08T07:55:08Z","closed_at":"2016-09-14T12:23:17Z","body":"_From @njl07 on September 14, 2016 11:40_\n\n### Which platform(s) does your issue occur on?\r\n**iOS10** with **XCode 8**\r\n\r\n### Please provide the following version numbers that your issue occurs with:\r\n- CLI: **2.4.0-2016-09-12-6625**\r\n- Cross-platform modules: **2.4.0** but with manually compilation of your latest master repository after clone it\r\n- Runtime(s): **`\"tns-ios\"` 2.2.1**\r\n- Plugin(s): \r\n```javascript\r\n\"dependencies\": {\r\n    \"@angular/common\": \"2.0.0-rc.7\",\r\n    \"@angular/compiler\": \"2.0.0-rc.7\",\r\n    \"@angular/core\": \"2.0.0-rc.7\",\r\n    \"@angular/forms\": \"2.0.0-rc.7\",\r\n    \"@angular/http\": \"2.0.0-rc.7\",\r\n    \"@angular/platform-browser\": \"2.0.0-rc.7\",\r\n    \"@angular/platform-browser-dynamic\": \"2.0.0-rc.7\",\r\n    \"@angular/platform-server\": \"2.0.0-rc.7\",\r\n    \"@angular/router\": \"3.0.0-rc.3\",\r\n    \"nativescript-angular\": \"^0.6.1-2016-09-13-909\",\r\n    \"nativescript-ng2-translate\": \"^1.2.0\",\r\n    \"nativescript-slides\": \"^2.1.5\",\r\n    \"ng2-translate\": \"^2.4.4\",\r\n    \"reflect-metadata\": \"^0.1.8\",\r\n    \"rxjs\": \"5.0.0-beta.12\",\r\n    \"tns-core-modules\": \"file:///Users/akanass/Programmation/NativeScript/bin/dist/tns-core-modules\",\r\n    \"zone.js\": \"^0.6.21\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"babel-traverse\": \"^6.15.0\",\r\n    \"babel-types\": \"^6.15.0\",\r\n    \"babylon\": \"^6.9.1\",\r\n    \"lazy\": \"^1.0.11\",\r\n    \"nativescript-dev-sass\": \"^0.2.0\",\r\n    \"nativescript-dev-typescript\": \"^0.3.2\",\r\n    \"typescript\": \"^1.8.10\"\r\n  }\r\n```\r\n\r\n### Please tell us how to recreate the issue in as much detail as possible.\r\n\r\nJust build the application with command line:\r\n\r\n```bash\r\n$ tns build ios\r\n```\r\n\r\nOpen generated project in **XCode 8** and run application in **simulator 9.3** to have the following error:\r\n\r\n```bash\r\nNativeScript loaded bundle file:///Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%209.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/Foundation.framework\r\nNativeScript loaded bundle file:///Library/Developer/CoreSimulator/Profiles/Runtimes/iOS%209.3.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework\r\n***** Fatal JavaScript exception - application has been terminated. *****\r\nNative stack trace:\r\n1   0x103837c67 -[TNSRuntime executeModule:]\r\n2   0x1033e36d2 main\r\n3   0x1071d092d start\r\n4   0x1\r\nJavaScript stack trace:\r\n1   @file:///app/tns_modules/utils/utils.js:139:90\r\nJavaScript error:\r\nfile:///app/tns_modules/utils/utils.js:139:90: JS ERROR TypeError: undefined is not an object (evaluating 'getter(UIDevice, UIDevice.currentDevice).systemVersion')\r\n```\r\n\r\nOpen generated project in **XCode 8** and run application in **simulator 10.0** to have the following error:\r\n\r\n```bash\r\ndyld: Library not loaded: @rpath/TKLiveSync.framework/TKLiveSync\r\n  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\r\n  Reason: no suitable image found.  Did find:\r\n\t/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'\r\n```\r\nThanks 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.\r\n\r\nBest regards.\r\n\n\n_Copied from original issue: NativeScript/NativeScript#2717_"},"comment":{"url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/comments/252410166","html_url":"https://github.com/NativeScript/ios-runtime/issues/650#issuecomment-252410166","issue_url":"https://api.github.com/repos/NativeScript/ios-runtime/issues/650","id":252410166,"user":{"login":"slaction","id":10262444,"avatar_url":"https://avatars.githubusercontent.com/u/10262444?v=3","gravatar_id":"","url":"https://api.github.com/users/slaction","html_url":"https://github.com/slaction","followers_url":"https://api.github.com/users/slaction/followers","following_url":"https://api.github.com/users/slaction/following{/other_user}","gists_url":"https://api.github.com/users/slaction/gists{/gist_id}","starred_url":"https://api.github.com/users/slaction/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slaction/subscriptions","organizations_url":"https://api.github.com/users/slaction/orgs","repos_url":"https://api.github.com/users/slaction/repos","events_url":"https://api.github.com/users/slaction/events{/privacy}","received_events_url":"https://api.github.com/users/slaction/received_events","type":"User","site_admin":false},"created_at":"2016-10-08T07:55:08Z","updated_at":"2016-10-08T07:55:08Z","body":"I am having this same issue.  I have tried all of the suggestions without any luck.  Running Sierra 10.12 with xCode 8.0\r\n\r\nBuild works on Android, but ios returns this error.....\r\n\r\n`Project successfully built\r\nSuccessfully deployed on device with identifier 'FE47600F-9AC7-4192-BA8E-9C8099FA53B3'.\r\nOct  8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 1   0x1082378d7 -[TNSRuntime executeModule:]\r\nOct  8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 2   0x107da86d2 main\r\nOct  8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 3   0x10c4d068d start\r\nOct  8 03:52:11 MacBook-Pro sampleTelerikNEXT[23478]: 4   0x1\r\nOct  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)\r\nOct  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`\r\n\r\nCan someone please help me find a workaround?"}}
{"actor":{"display_login":"slaction"}}