provisioning profile not showing in 2.x project

October 10, 2009

I’ve recently worked on an update to MeanPhoto. The project was originally done using the iPhone SDK 2.1. I made the new distribution build with the 3.1.2 SDK without any issues, but when I uploaded the binary on iTunesConnect, I got an error saying that the app was not signed with an Apple provisioning profile.

I was surprised because I did not change any build settings. When I looked at the code signing key, I didn’t see any of the installed provisioning profiles:

no profiles showing up
no profiles showing up

The provisioning profiles should show up like this:

provisioning profiles showing
provisioning profiles showing

I checked a bunch of things from my old post about code signing, but I could not fix the issue.

I opened the project.pbxproj file (located in the .xcodeproj folder) and saw that while the CODE_SIGNING_IDENTITY was set, the PROVISIONING_PROFILE key was missing in the Distribution build settings section:

PROVISIONING_PROFILE missing
PROVISIONING_PROFILE missing

I created a temp project and selected the correct provisioning profile (in the new project I could select it with no problem). I opened the .pbxproj file from the temp project in a text editor (I use Smultron which is awesome) and copied the PROVISIONING_PROFILE setting to MeanPhoto’s .pbxproj:

PROVISIONING_PROFILE set
PROVISIONING_PROFILE set

The provisioning profiles still don’t show up in XCode, but the new build uploaded to iTunes without a problem.

Leave a Reply