iPhone Developer Provision Issue on Device
by Jon Hibbins on 27 August 2008
Filed under: Objective-C, Quick Tips, iPhone
After a number of compile to iPhone device issues, specifically: “entitlement ‘application-identifier’ has value not permitted by provisioning profile” and “Command /usr/bin/codesign failed with exit code 1″, I have worked out you can have one and only one developer provision and developer application on the iPhone at a time otherwise you get installation errors etc…
I also had to have the correct Bundle Identifier in the Info.plist file and make sure the ‘Code Signing Identity’ and ‘Code Signing Provisioning Profile’ was also correct.
Hopefully this is useful to someone, Good Luck!!!
October 3rd, 2008 at 4:03 pm
Thank you so much. I had an extra cert in the key chain assistant that was causing Command /usr/bin/codesign failed with exit code 1.
January 6th, 2009 at 6:53 pm
Thanks VERY much – your instructions were a little vaque, but Mike’s reply tipped me off to run the Keychain First Aid app: Keychain Access > Keychain First Aid.
verify first to see if there any errors. If so, run repair, then verify again. This fixed my problem
August 19th, 2009 at 9:52 am
Non of this worked for me but this did … hope it helps someone else!
Make sure that the “executable file” name in info.plist, the “Executable” name on the properties tab of the target info panel and the “Product Name” in the “Packaging” section of the build tab of the target info panel are all the same, or that the first 2 are ${EXECUTABLE_NAME} and the third is your project name.
This worked for me
September 22nd, 2009 at 12:59 am
THANK YOU PHIL!!!!!
October 9th, 2009 at 7:01 am
Please be also sure that your developer certificate is correctly installed. This is what caused my error.
Zaaf
February 17th, 2010 at 9:54 pm
I’m a first time developer coming over from the design side and this is what got me around the problem. Although it’s the same advice given above, but in a visual format.
I started here:
http://developer.apple.com/iphone/index.action
I clicked on the “iPhone Developer Program Portal” (currently located in the upper right hand section of the site: http://developer.apple.com/iphone/manage/overview/index.action
Under the portal resources (again upper right hand side) there’s a “How-To’s” video section. It shows the step-by-step of getting your app onto your iPhone. I was using the Launch Assistant, but it left out the step everyone here is talking about.
The good stuff:
When you create an app ID, you must create a name and a Bundle Identifier (they recommend this: com.yourdomain.yourappname). That’s the key.
When you’re in project in XCode, look for the ‘Groups & Files” pane (it’s on the left for me). You’ll see a Red Bulleye icon labeled “Targets”. Expand that and you’ll see your app name below it. Double Click the app name. That should pop a new info window. Click the ‘Properties” tab at the top and put in your “com.yourdomain.yourappname” (minus the quotes) in the “Identifier” field.
That did the trick for me. I’m so happy to see my app on the iPhone, I had to buy a new seat.
March 3rd, 2010 at 11:35 am
i have app id in my provision profile : XX
My Project Name : Untitled
in my info.plist
Executable file: XX
Bundle Identifier: com.companyname.XX
BundleName :XX
BundleDisplayName:XX
ProductName:XX (target>getInfo>build>productName)
Then also i am gettinf this error ..
March 6th, 2010 at 3:00 am
THANKS FROM ME TOO PHIL!!!
March 14th, 2010 at 1:21 pm
I got this problem when I moved my projects back to my Mac, from my iDisk… Make sure you don’t try to save them on your iDisk when you’ve iDisk syncing turned off!
April 13th, 2010 at 10:40 am
Thanks this also worked for me!
May 7th, 2010 at 1:24 am
Yes! thanks! solved it!