{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2456","repository_url":"https://api.github.com/repos/NativeScript/NativeScript","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2456/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2456/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2456/events","html_url":"https://github.com/NativeScript/NativeScript/issues/2456","id":165538736,"number":2456,"title":"iOS10 Xcode 8 beta JS ERROR TypeError: UIDevice.currentDevice is not a function","user":{"login":"johanteekens","id":10560063,"avatar_url":"https://avatars.githubusercontent.com/u/10560063?v=3","gravatar_id":"","url":"https://api.github.com/users/johanteekens","html_url":"https://github.com/johanteekens","followers_url":"https://api.github.com/users/johanteekens/followers","following_url":"https://api.github.com/users/johanteekens/following{/other_user}","gists_url":"https://api.github.com/users/johanteekens/gists{/gist_id}","starred_url":"https://api.github.com/users/johanteekens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johanteekens/subscriptions","organizations_url":"https://api.github.com/users/johanteekens/orgs","repos_url":"https://api.github.com/users/johanteekens/repos","events_url":"https://api.github.com/users/johanteekens/events{/privacy}","received_events_url":"https://api.github.com/users/johanteekens/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/iOS","name":"iOS","color":"fbca04"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Question","name":"T:Question","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"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},"assignees":[{"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}],"milestone":null,"comments":12,"created_at":"2016-07-14T11:24:08Z","updated_at":"2016-10-08T07:38:35Z","closed_at":"2016-07-15T12:00:52Z","body":"**Duplicate**\r\nCreate a simple project, add a label and build using Xcode beta 8\r\nEmulator works fine: tns run ios --emulator\r\n\r\n**Problem:**\r\nTrying to compile using XCode 8 Beta 2 on iOS 10 Developer Beta 2:\r\n\r\n> NativeScript loaded bundle file:///System/Library/Frameworks/Foundation.framework\r\n> NativeScript loaded bundle file:///System/Library/Frameworks/UIKit.framework\r\n> ***** Fatal JavaScript exception - application has been terminated. *****\r\n> Native stack trace:\r\n> 1   0x100569494 -[TNSRuntime executeModule:]\r\n> 2   0x1000b93f0 main\r\n> 3   0x185c705b8 <redacted>\r\n> JavaScript stack trace:\r\n> 1   @file:///app/tns_modules/utils/utils.js:206:72\r\n> JavaScript error:\r\n> file:///app/tns_modules/utils/utils.js:206:72: JS ERROR TypeError: UIDevice.currentDevice is not a function. (In 'UIDevice.currentDevice()', 'UIDevice.currentDevice' is undefined)\r\n\r\n**Version details:**\r\ntns --version: 2.1.1\r\nnodeVersion\": \"4.4.5\"\r\n\"_npmVersion\": \"2.15.5\"\r\n\"tns-android\": {\"version\": \"2.1.1\"}\r\n\"tns-ios\": {\"version\": \"2.1.1\"\r\n\"babel-traverse\": \"6.10.4\"\r\n\"babel-types\": \"6.11.1\"\r\n\"babylon\": \"6.8.4\"\r\n\"lazy\": \"1.0.11\"\r\n\"nativescript-dev-typescript\": \"^0.3.0\"\r\n\"typescript\": \"^1.8.10\"\r\n\"dependencies\": {\r\n    \"nativescript-barcodescanner\": \"^1.3.5\",\r\n    \"tns-core-modules\": \"2.1.0\"\r\n  }\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/252409430","html_url":"https://github.com/NativeScript/NativeScript/issues/2456#issuecomment-252409430","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/2456","id":252409430,"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:38:35Z","updated_at":"2016-10-08T07:38:35Z","body":"I am currently experiencing the same issue and unable to run app on iOS simulator.\r\n\r\nRunning Sierra with latest version of Xcode."}}
{"actor":{"display_login":"slaction"}}