Where does xcode take application's Identifier from?

Burjua picture Burjua · Sep 16, 2010 · Viewed 31.8k times · Source

I think my head soon explode. I've been working on my application for some time and finally git an iPhone for testing on device, now I'm trying to run my app on iphone but can't do it. I've done all necessary steps but getting an error [BEROR]Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.MyProject' could not be found

My provisionign profile is called XXXXXXXXX.com.myname.*

in info.plist I changed Bundle identifier to com.myname.myapplication

my project name is MyProject because I can't change it, but my target and executables called myapplication

I've checked all setting and can't even find this yourcompany anywhere

but still getting this error

where need I seek?

thank you

Answer

Nikolai Ruhe picture Nikolai Ruhe · Sep 16, 2010

Xcode uses the bundle identifier found in the target's Info.plist file for code signing.

Which Info.plist file is selected is actually a build setting (normally in the target), and is usually set up by Xcode correctly. If you manually edited the Info.plist's bundle identifier value to your identifier, Xcode should use this identifier and code signing should work.

The default Info.plist file contains a bundle identifier that contains Xcode build settings and is processed to the final identifier when building the target.