The application does not contain a valid bundle identifier.

By : coder
Source: Stackoverflow.com
Question!

I know this question has been asked before, but I have tried the given solutions, and none have worked. I am switching development computers, and starting a brand new project on my new computer. We already have a certificate that we used on the old computer, so I exported the Developer Certificate from my old computer, and installed it in my new machine. I created and downloaded a provisioning profile for my new application on the new computer. I am trying to run the application on a test device, whose UDID I added to the provisioning profile, so it would be valid for this device.

The provisioning profile was created with the apple ID I created online with the the form com.mycompany.projectname.

When I try to run the application on the test device(it does not work on the simulator either), I get an error popup that says The application does not contain a valid bundle identifier.

My bundle identifier, which I checked both the Targets -> Summary -> Identifier and the Info.plist is showing correctly in the form of com.mycompany.projectname, with neither the company name, nor the project name having any special characters in it.

Am I missing something? I have been beating my head against the wall with this for a while now...

By : coder


Answers

I remember the last time this happened to us was when we noobishly trashed our app's plist. Luckily, we had an older copy on the old time capsule, and restored it. But we had changed the bundle ID since and it kept showing us that error. Matching the cert with the Bundle ID is critical. Make ABSOLUTELY sure the names on the cert match the bundle ID, or check the organizer to see if the cert even installed in the first place. If need be, as an absolute last resort, change the bundle ID and get a new cert.

By : CodaFi


This video can help you solving your question :)
By: admin