Missing "Code Signing Provisioning Profile" in Xcode build options

I am missing the field "Code Signing Provisioning Profile" in the Project Info Build Settings of Xcode. The "Code Signing Identity" setting is there. Xcode version is 3.1, the version of the iPhone SDK I don't know how to find out.

In the Organizer everything is as it should be: my iPhone with the Provisioning-Certificate from the Developer Portal, though I had problems restoring the iPhone with the Organizer so it is still in the state from the iTunes update.

When I build my app and want to run it on the device, the status bar says "Failed to upload asdf.app". My guess is that these to things must somehow be related. This is the output of the console on the Mac:

Xcode: ApplicationVerificationFailed
Xcode: MobileDevice: perform_command: There was an error communicating with the service agent: -402653183
Xcode: MobileDevice: AMDeviceInstallApplication: Could not install package on device: kAMDUndefinedError

iMac, Mac OS X (10.5.4)

Posted on Aug 15, 2008 5:23 AM

Reply
20 replies

Jun 19, 2009 7:37 AM in response to TKAB

Similar problem & fix:

Installed the 3.0 SDK and XCode, and updated devices to 3.0.

When trying to deploy debug version to device, get error:

Can't run "x" on the iPod "y". The iPod "y" doesn't have the provisioning profile with which the application was signed. Please add the provisioning profile via the Organizer or check the "Code Signing Identity" build setting.

Checked device has profile (both on the device under Settings->General and via the Organizer). Double checked using the right signing identity. Tried cleaning everything, emptying the XCode cache, rebooting both the Mac and the device.

Even deleted all certificates, etc and created brand new ones via the developer portal, and still getting the same error. Checked the certificates work fine in keychain, have the right default, have a private key, etc. Also checked the profiles have all the right app id's, certificates, devices.

Created a brand new "Hello World" project, set it up and -- it worked! So that means it is something wrong inside the old project (i.e. all the certificates and profiles are working).

Needed some manual editing of the project file. First of all make a backup (copy) of the xcodeproj file. This is actually a package, so Control-click and select "Show Package Contents". Then Control-click on project.pbxproj and open with TextEdit.

In the XCBuildConfiguration section had several lines with PROVISIONING_PROFILE that were not in the test application, as well as several CODE SIGNIDENTITY and one CODE SIGNENTITLEMENTS.

Remove all entries of these three types, save and close the files. Open the project in XCode and check that running in the simulator still works. (The device won't work because we deleted all the signing).

Select the Project root and click Info, then set the Code Signing Identity to the value you want, or you can select the Target and set the signing identity there. Anyway, after removing all the bad entries from the project file manually, deploying to the device is working once again!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Missing "Code Signing Provisioning Profile" in Xcode build options

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.