Error: code signing failed: unknown error -1=ffffffffffffffff

Dear all, 

I’m trying to build/compile my app program using Corona SDK (3184 or 3189), however, it comes out with following error message:

Build Failed ERROR: code signing failed: /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature /Users/ALPHA/Documents/abhidhamma.app: unknown error -1=ffffffffffffffff

And the console of Corona SDK gives the message:

Dec 28 09:42:57.824 Using additional build settings from: build.settings Building: Copying app resources Excluding specified files from build: excluding: Icon.png excluding: Icon-\*dpi.png Building: Unpacking build from server Building: Compiling Xcode assets catalog Building: Packaging app Dec 28 09:42:57.923 Code signing identity: "iPhone Developer: ---- (----)" "iPhone Developer: ---- (----)" (260A88AA1F138F03F111519704DD20E7E220E1DB) Dec 28 09:42:58.381 Codesign embedded frameworks in folder (/Users/ALPHA/Documents/abhidhamma.app/Frameworks): Dec 28 09:42:58.769 Created XCENT: /var/folders/t1/psgwl3k55nn9yy8fkqdmkjb80000gn/T/CLtmpcJn43k/entitlements.xcent Creating Info.plist... adding extra plist setting UILaunchStoryboardName: LaunchScreen adding extra plist setting CFBundleLocalizations: ["en","zh-Hant"] adding extra plist setting UIApplicationExitsOnSuspend: true adding extra plist setting CFBundleVersion: 1.0 adding extra plist setting CFBundleIconFile: Icon-App-57x57@1x.png adding extra plist setting UIStatusBarHidden: false adding extra plist setting CFBundleIconFiles: ["Icon-App-57x57@1x.png","Icon-App-57x57@2x.png","Icon-App-72x72@1x.png","Icon-App-72x72@2x.png","Icon-App-29x29@1x.png","Icon-App-29x29@2x.png","Icon-Small-50x50@1x.png","Icon-Small-50x50@2x.png","Icon-App-40x40@1x.png","Icon-App-40x40@2x.png","Icon-App-60x60@1x.png","Icon-App-60x60@2x.png","Icon-App-76x76@1x.png","Icon-App-76x76@2x.png"] adding extra plist setting CFBundleShortVersionString: 1.0 Application version information: Version: 1.0 [CFBundleShortVersionString] (set in build.settings) Build: 1.0 [CFBundleVersion] (set in build.settings) Building: Signing application with "iPhone Developer: ---- (----)" "iPhone Developer: ---- (----)" Dec 28 09:42:58.769 ERROR: build command failed: DEVELOPER\_BASE="/Applications/Xcode.app/Contents/Developer" Dec 28 09:42:58.769 export PATH="$DEVELOPER\_BASE/Platforms/iPhoneOS.platform/Developer/usr/bin:$DEVELOPER\_BASE/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" export CODESIGN\_ALLOCATE="/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign\_allocate" /usr/bin/xattr -cr "/Users/ALPHA/Documents/abhidhamma.app" && "/usr/bin/codesign" --verbose -f -s "260A88AA1F138F03F111519704DD20E7E220E1DB" --entitlements "/var/folders/t1/psgwl3k55nn9yy8fkqdmkjb80000gn/T/CLtmpcJn43k/entitlements.xcent" "/Users/ALPHA/Documents/abhidhamma.app" Dec 28 09:42:58.769 ERROR: with exit code 1 and output: Dec 28 09:42:58.770 Dec 28 09:42:58.777 /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature /Users/ALPHA/Documents/abhidhamma.app: unknown error -1=ffffffffffffffff Dec 28 09:42:58.777 BUILD ERROR: ERROR: code signing failed: /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature /Users/ALPHA/Documents/abhidhamma.app: unknown error -1=ffffffffffffffff Dec 28 09:42:58.777 Dec 28 09:42:58.840 iOS build failed (12) after 16 seconds Dec 28 09:42:59.193 ERROR: Build Failed: ERROR: code signing failed: /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature /Users/ALPHA/Documents/abhidhamma.app: unknown error -1=ffffffffffffffff Dec 28 09:42:59.193 

I have checked the certificates: (they are all valid!)

  1. Apple iPhone Certification Authority (appear after compiling error)

  2. Apple iPhone OS Provisioning Profile Signing (appear after compiling error)

  3. Apple Root Certificate Authority (appear after compiling error)

  4. Apple World Wide Developer Relations Certification Authority

  5. iPhone Developer: ----

  6. iPhone Distribution: ----

Furthermore, mi have checked the keys, and it is open access to any application.

In addition, i have checked my Provisional Profiles, and i founded that there have only two files (from myapp_Dev.mobileprovision and myapp_AppStore.mobileprovision files).

However, although the error message comes out, it still gives me an output file (15.3MB). However, i cannot installed it into my iPhone (error message: an error occured) when i want to test it.

Could anyone pls give me some suggestions that how to deal with this question? Thank you!

Hey!

Sorry to hear that you have this issue. Here’s some steps to help you troubleshoot:

  1. In Welcome Window click “Samples” and open Getting Started -> HelloWorld

Try to build that project with same certificate

2a. If it fails, open Keychain Access app, find your certificate, expand it and double click on private key. In Acess Control you can allow all applications to access your key https://i.imgur.com/5PCEVfE.png

2b. If builds OK, post your build settings here.

Also, make sure you have clock synchronized with server, not set up manually.

If you need more detailed instructions, pease, write.

Dear sir,

Thank you for replying.

I have followed your suggestion and steps. 

With using the HelloWorld example, i got the same error message. 

So, i followed the step 2a, however, i found that my key has already been access by all application (which i already mentioned in my post, i already checked this before posting: “Furthermore, mi have checked the keys, and it is open access to any application.”). 

Today, i tried to make my certificate always being trusted. Then, i got new error message

ERROR: code signing failed: /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature Warning: unable to build chain to self-signed root for signer "iPhone Developer: ---- (----)"/Users/ALPHA/.../abhidhamma.app: unknown error -1=ffffffffffff

Could you please help me figure out is there is any other possibility that may solve this question, really thanks for your help.

Henry

I have build failure too when i try the 3189 version of corona to build my (previously working) game on google

It seems there’s something wrong with root certificates on your machine. I would recommend starting Xcode, “Create a new Xcode project”, iOS, Single View App. Type in some names and app bundle (you can type same as your app, really. Click next couple times, and try running on your device. You can do it by selecting your iPhone in dropdown list near ► in top of the window.

Hey!

Sorry to hear that you have this issue. Here’s some steps to help you troubleshoot:

  1. In Welcome Window click “Samples” and open Getting Started -> HelloWorld

Try to build that project with same certificate

2a. If it fails, open Keychain Access app, find your certificate, expand it and double click on private key. In Acess Control you can allow all applications to access your key https://i.imgur.com/5PCEVfE.png

2b. If builds OK, post your build settings here.

Also, make sure you have clock synchronized with server, not set up manually.

If you need more detailed instructions, pease, write.

Dear sir,

Thank you for replying.

I have followed your suggestion and steps. 

With using the HelloWorld example, i got the same error message. 

So, i followed the step 2a, however, i found that my key has already been access by all application (which i already mentioned in my post, i already checked this before posting: “Furthermore, mi have checked the keys, and it is open access to any application.”). 

Today, i tried to make my certificate always being trusted. Then, i got new error message

ERROR: code signing failed: /Users/ALPHA/Documents/abhidhamma.app: replacing existing signature Warning: unable to build chain to self-signed root for signer "iPhone Developer: ---- (----)"/Users/ALPHA/.../abhidhamma.app: unknown error -1=ffffffffffff

Could you please help me figure out is there is any other possibility that may solve this question, really thanks for your help.

Henry

I have build failure too when i try the 3189 version of corona to build my (previously working) game on google

It seems there’s something wrong with root certificates on your machine. I would recommend starting Xcode, “Create a new Xcode project”, iOS, Single View App. Type in some names and app bundle (you can type same as your app, really. Click next couple times, and try running on your device. You can do it by selecting your iPhone in dropdown list near ► in top of the window.