Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better error reporting for deploy on device with OS version mismatch #956

Closed
PanayotCankov opened this issue Sep 23, 2015 · 1 comment
Closed
Labels
Milestone

Comments

@PanayotCankov
Copy link
Contributor

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:

Results at '/Users/cankov/GitRoot/NativeScript/nativescript-marketplace-demo/platforms/ios/build/device/nativescriptmarketplacedemo.ipa' 
Project successfully built
Using  /Users/cankov/GitRoot/NativeScript/nativescript-marketplace-demo/platforms/ios/build/device/nativescriptmarketplacedemo.ipa
Status: CreatingStagingDirectory PercentComplete: 5
Status: ExtractingPackage PercentComplete: 15
Status: InspectingPackage PercentComplete: 20
Status: TakingInstallLock PercentComplete: 20
Status: PreflightingApplication PercentComplete: 30
  <-- note a new empty line here

More importantly the process then hangs.

Probably the CLI can handle somewhat error notification among these lines:
https://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-proxy-services.ts#L221
https://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-proxy-services.ts#L344
https://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-core.ts#L840
https://github.com/telerik/mobile-cli-lib/blob/master/mobile/ios/ios-core.ts#L846

The verbose log is:

PlistService sending: 
!)Yist00�WCommand[PackagePathWInstall_-PublicStaging/nativescriptmarketplacedemo.ipa
MESSAGE RECEIVING
[ { Status: 'CreatingStagingDirectory', PercentComplete: 5 } ]
Status: CreatingStagingDirectory PercentComplete: 5
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'ExtractingPackage', PercentComplete: 15 } ]
Status: ExtractingPackage PercentComplete: 15
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'InspectingPackage', PercentComplete: 20 } ]
Status: InspectingPackage PercentComplete: 20
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'TakingInstallLock', PercentComplete: 20 } ]
Status: TakingInstallLock PercentComplete: 20
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'PreflightingApplication', PercentComplete: 30 } ]
Status: PreflightingApplication PercentComplete: 30
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Error: 'DeviceOSVersionTooLow' } ]

Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
@PanayotCankov
Copy link
Contributor Author

Same when something goes wrong with the provisioning profiles. This is when I run 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.

!)Dist00�WCommand[PackagePathWInstall_PublicStaging/TNSApp.ipa
MESSAGE RECEIVING
[ { Status: 'CreatingStagingDirectory', PercentComplete: 5 } ]
Status: CreatingStagingDirectory PercentComplete: 5
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'ExtractingPackage', PercentComplete: 15 } ]
Status: ExtractingPackage PercentComplete: 15
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'InspectingPackage', PercentComplete: 20 } ]
Status: InspectingPackage PercentComplete: 20
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'TakingInstallLock', PercentComplete: 20 } ]
Status: TakingInstallLock PercentComplete: 20
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'PreflightingApplication', PercentComplete: 30 } ]
Status: PreflightingApplication PercentComplete: 30
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'InstallingEmbeddedProfile', PercentComplete: 30 } ]
Status: InstallingEmbeddedProfile PercentComplete: 30
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Status: 'VerifyingApplication', PercentComplete: 40 } ]
Status: VerifyingApplication PercentComplete: 40
Failed to retreive state: TypeError: Cannot read property 'Status' of undefined
MESSAGE RECEIVING
[ { Error: 'ApplicationVerificationFailed',
    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.)',
    ErrorDetail: -402620395 } ]

Failed to retreive state: TypeError: Cannot read property 'Status' of undefined


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants