After reading through all of the previous posts on code sign errors, I have reached a cul-de-sac. While building a cordova project (version 4.3.0) with ios platform (version 3.8
TL;DR
Most likely improper keychain setup for iPhone distribution. Check and make sure you have the cert with the nested key.
Ensure proper flags and options are set if you using command line tools. Otherwise, try different wrapper tools like Fastlane ruby gem.
Long version
We figured it out using a wrapper tool around Apple developer console and code signing and making sure the p12 file (cert+key) file was set correctly.
cordova platform rm ios
etc.). Then add the plugins, then add the platforms.cordova build ios --device --release
, which build our "Abczy.app"..app
file is there).app
into an .ipa
:
xcrun -sdk iphoneos PackageApplication -v Abczyx.app -o /Users/myname/Desktop
(I've moved the resulting .ipa
onto my desktop to make it easier to manipulate)..ipa
and ensure you have the mobileprovision file from apple developer included in the same directory.sigh resign ./Abczyx.ipa -p "Abczyx-dist.mobileprovision"
. Copy and paste the name of the cert/key you will use and then it will sign the app with the distribution mobileprovision. If you use a developer mobileprovision, it will get a fatal error but the app will be signed anyway.sigh resign ./Abczyx.ipa -i "iPhone Developer: Joey Jojobuttafucco (123FTR12PAC)" -p "Abczyx-dist.mobileprovision"