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

iOS: optimize error message if installation fails #13349

Closed
1 task done
m1ga opened this issue Mar 31, 2022 · 1 comment · Fixed by #13350
Closed
1 task done

iOS: optimize error message if installation fails #13349

m1ga opened this issue Mar 31, 2022 · 1 comment · Fixed by #13350
Labels
feature needs triage This issue hasn't been reviewed by maintainers

Comments

@m1ga
Copy link
Contributor

m1ga commented Mar 31, 2022

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

When you try to install on a device that is not registered in your prov. profiles it will fail with a JS error after "installing app..".
It was pointing to that line: https://github.com/tidev/titanium_mobile/blob/master/iphone/cli/hooks/install.js#L207
but wasn't showing a proper error message.

Tested with 10.1.1.GA and 10.2.0

error message:

[ERROR] Error
    at Object.<anonymous> (/Users/miga/Library/Application Support/Titanium/mobilesdk/osx/10.2.0.v20220325163249/node_modules/node-appc/lib/exception.js:34:27)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.get (/Users/miga/Library/Application Support/Titanium/mobilesdk/osx/10.2.0.v20220325163249/node_modules/node-appc/lib/appc.js:62:11)
    at Handle.<anonymous> (/Users/miga/Library/Application Support/Titanium/mobilesdk/osx/10.2.0.v20220325163249/iphone/cli/hooks/install.js:207:22)
    at Handle.emit (events.js:412:35)

test:

  • remove device from prov.profile
  • build app for device

Solution

Provide a proper error message "check prov. profiles or device".

Alternatives

No response

Platforms

iOS

@m1ga m1ga added feature needs triage This issue hasn't been reviewed by maintainers labels Mar 31, 2022
@m1ga
Copy link
Contributor Author

m1ga commented Mar 31, 2022

Error code is 0xe800001a and message Failed to transfer app to device if we want to add an extra case.
But it is not even showing the default error anymore (it has an else case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant