Skip to content

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

@PanayotCankov

Description

@PanayotCankov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions