{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/956","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/956/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/956/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/956/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/956","id":107904981,"number":956,"title":"Better error reporting for deploy on device with OS version mismatch","user":{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-23T12:02:12Z","updated_at":"2015-12-02T11:48:23Z","closed_at":null,"body":"When there are problems with the provisioning profiles, or device OS (the logs are from problems with device with OS lower than the App specifies) or various other problems the `tns ios run` sometimes hangs on: \r\n\r\n```\r\nResults at '/Users/cankov/GitRoot/NativeScript/nativescript-marketplace-demo/platforms/ios/build/device/nativescriptmarketplacedemo.ipa' \r\nProject successfully built\r\nUsing  /Users/cankov/GitRoot/NativeScript/nativescript-marketplace-demo/platforms/ios/build/device/nativescriptmarketplacedemo.ipa\r\nStatus: CreatingStagingDirectory PercentComplete: 5\r\nStatus: ExtractingPackage PercentComplete: 15\r\nStatus: InspectingPackage PercentComplete: 20\r\nStatus: TakingInstallLock PercentComplete: 20\r\nStatus: PreflightingApplication PercentComplete: 30\r\n  <-- note a new empty line here\r\n```\r\nMore importantly the process then hangs.\r\n\r\nProbably the CLI can handle somewhat error notification among these lines:\r\nhttps://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-proxy-services.ts#L221\r\nhttps://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-proxy-services.ts#L344\r\nhttps://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-core.ts#L840\r\nhttps://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-core.ts#L846\r\n\r\nThe verbose log is:\r\n```\r\nPlistService sending: \r\n!)Yist00�WCommand[PackagePathWInstall_-PublicStaging/nativescriptmarketplacedemo.ipa\r\nMESSAGE RECEIVING\r\n[ { Status: 'CreatingStagingDirectory', PercentComplete: 5 } ]\r\nStatus: CreatingStagingDirectory PercentComplete: 5\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'ExtractingPackage', PercentComplete: 15 } ]\r\nStatus: ExtractingPackage PercentComplete: 15\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'InspectingPackage', PercentComplete: 20 } ]\r\nStatus: InspectingPackage PercentComplete: 20\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'TakingInstallLock', PercentComplete: 20 } ]\r\nStatus: TakingInstallLock PercentComplete: 20\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'PreflightingApplication', PercentComplete: 30 } ]\r\nStatus: PreflightingApplication PercentComplete: 30\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Error: 'DeviceOSVersionTooLow' } ]\r\n\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/161269883","html_url":"https://github.com/NativeScript/nativescript-cli/issues/956#issuecomment-161269883","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/956","id":161269883,"user":{"login":"PanayotCankov","id":5919275,"avatar_url":"https://avatars.githubusercontent.com/u/5919275?v=3","gravatar_id":"","url":"https://api.github.com/users/PanayotCankov","html_url":"https://github.com/PanayotCankov","followers_url":"https://api.github.com/users/PanayotCankov/followers","following_url":"https://api.github.com/users/PanayotCankov/following{/other_user}","gists_url":"https://api.github.com/users/PanayotCankov/gists{/gist_id}","starred_url":"https://api.github.com/users/PanayotCankov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PanayotCankov/subscriptions","organizations_url":"https://api.github.com/users/PanayotCankov/orgs","repos_url":"https://api.github.com/users/PanayotCankov/repos","events_url":"https://api.github.com/users/PanayotCankov/events{/privacy}","received_events_url":"https://api.github.com/users/PanayotCankov/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T11:48:23Z","updated_at":"2015-12-02T11:48:23Z","body":"Same when something goes wrong with the provisioning profiles. This is when I run the QSF on device. I have multiple accounts and the wrong provisioning profile is used in the first place, but then again the process hangs on \"40%\" during deployment.\r\n\r\n```\r\n!)Dist00�WCommand[PackagePathWInstall_PublicStaging/TNSApp.ipa\r\nMESSAGE RECEIVING\r\n[ { Status: 'CreatingStagingDirectory', PercentComplete: 5 } ]\r\nStatus: CreatingStagingDirectory PercentComplete: 5\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'ExtractingPackage', PercentComplete: 15 } ]\r\nStatus: ExtractingPackage PercentComplete: 15\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'InspectingPackage', PercentComplete: 20 } ]\r\nStatus: InspectingPackage PercentComplete: 20\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'TakingInstallLock', PercentComplete: 20 } ]\r\nStatus: TakingInstallLock PercentComplete: 20\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'PreflightingApplication', PercentComplete: 30 } ]\r\nStatus: PreflightingApplication PercentComplete: 30\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'InstallingEmbeddedProfile', PercentComplete: 30 } ]\r\nStatus: InstallingEmbeddedProfile PercentComplete: 30\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Status: 'VerifyingApplication', PercentComplete: 40 } ]\r\nStatus: VerifyingApplication PercentComplete: 40\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\nMESSAGE RECEIVING\r\n[ { Error: 'ApplicationVerificationFailed',\r\n    ErrorDescription: 'Failed to verify code signature of /private/var/mobile/Library/Caches/com.apple.mobile.installd.staging/temp.7mEA1d/extracted/Payload/TNSApp.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)',\r\n    ErrorDetail: -402620395 } ]\r\n\r\nFailed to retreive state: TypeError: Cannot read property 'Status' of undefined\r\n\r\n\r\n```"}}