I've been having trouble code signing my Cordova-based app for either App Store or Ad Hoc deployments.
I can get it to build and run on both my emulator and my iPad. I can also create an archive using XCode without any problems. But when I try to create an Ad Hoc .ipa file or push to iTunes Connect, I get this message in an alert dialog:
Code signing operation failed
Check that the identity you selected is valid.
It seems I have tried everything.
- Recreated my development and production certificates along with development, ad hoc and app store provisioning profiles in Apple's developer portal
- Deleted all the certificates from my keychain and reinstalled them
- Deleted all the provisioning profiles from my system and reinstalled them
- Set the code signing identity on my project to all combinations of the following
- iOS Developer
- iOS Distribution
- Set my provisioning profile to all combinations of the following
- Developer profile
- Ad hoc profile
- App store profile
None of these have gotten me past the code signing error in Organizer. So then I tried using xcodebuild
from the command-line and got the following error:
error: Code signing operation failed
I have another app on my workstation that was created with Titanium. Using Titanium I can build and deploy both Ad Hoc and App Store versions without any issues.
Is there something with the CordovaLib project inside my app's XCode project? Or is there something I'm configuring wrong within my project.
I've spent about 8 hours working on this issue so far. Any insights would be greatly appreciated.
Versions (for reference)
- My workstation is a Macbook Pro with OSX 10.9
- XCode 5.1.1
- Cordova 3.4.1-0.1.0