hypermails
hypermails

Reputation: 746

how to resolve CodeSign error in appcelerator 4.x

I am getting the following error when I try to package my application for adhoc distribution. I am building fine - but not able to package. I have a indie seat license.

[ERROR] :  ** BUILD FAILED **
[ERROR] :  The following build commands failed:
[ERROR] :   CodeSign build/Products/Release-iphoneos/xyz.app
[ERROR] :  (1 failure)
TRACE  | titanium exited with exit code 1
ERROR  | Error: ti run exited with error code 1
    at ChildProcess.<anonymous> (/Users/User/.appcelerator/install/5.0.3/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:789:12)

My system -

    OS - Mac OSX El-Capitan
    Appcelerator - 4.x
    Appcelerator - Indie license

What I have done to debug this issue ? after spending a lot of time researching this - I have

PLEASE HELP - there is no clear description on what the problem is and how to resolve it.

Upvotes: 1

Views: 1930

Answers (2)

Daniel Gump
Daniel Gump

Reputation: 11

I just came across this issue and found a simple solution that doesn't involve wiping out everything and starting fresh:

  1. Browse to the Appcelerator project's build/iphone folder.
  2. Open XCode from the *.xcodeproj file
  3. Inside XCode, click on the "General" settings of the app, from the icon at the top of the file hierarchy.
  4. Under "Signing", checkmark the box to allow XCode to "Automatically manage signing".
  5. Build the app once to your test device from within XCode, then exit.
  6. Go back to Appcelerator and do Clean then Build to resolve the issue.

Upvotes: 1

Abdelalim Hassouna
Abdelalim Hassouna

Reputation: 768

I know it has been a while for this question but this might help someone.

I’ve been facing this problem for 2 days now:

[ERROR] :   BUILD FAILED
[ERROR] :  The following build commands failed:
[ERROR] :      CodeSign build/Products/Debug-iphoneos/WYN.
[ERROR] :  (1 failure)

What I did to solve it was:

  • Remove all my certificates from keychain (login and system) and revoking them from Apple member center.
  • Remove the provisioning profile associated to my app (Apple member center).
  • Create a new certificate.
  • By default it was put in the system area of key chain (That might be the problem).
  • Copy it to the login area of keychain and remove the old one.
  • Associate the provisioning profile to your app.
  • Test the app on a device.
  • It should be fixed!

Upvotes: 1

Related Questions