Xcode Bundle ID Problem On 7.3.1 The Provisioning Profile does not match your Bundle Identifier.

When I first created this Mac app, I changed the default bundle identifier. Now, I have a provisioning profile configured. I set it to the bundle identifier of the app.


When I attempt to archive the app I'm getting:


>Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“Profile Name Here”) has an AppID of “com.my.app.id.here” which does not match your bundle identifier “TheDefaultBundleIdIAlreadyChangedHere”.


The bundle id shown in the error message (com.my.app.id.here) is actually my app's bundle identifier but Xcode seems to think the bundle identifier of the app is the old default bundle identifier. I just took a peek in the info.plist, and the bundle identifier matches that of the provisioning profile (com.my.app.id.here). It seems Xcode may have cached the old bundle identifier (TheDefaultBundleIdIAlreadyChangedHere) somewhere and it is stale. I tried dumping the derived data but that didn't help.


Any ideas?

Accepted Answer

Hmmm...changing the bundle identifier under "General" for whatever reason, did not changed the "Product Bundle Identifier" in Build Settings. Never seen that happen before. In the info.plist and under the General tab, I see the correct bundle id. Anyway, changing it in build settings under 'packaging' fixed it.

Also had the same issue with XCode 9.2 ... This solution worked ... Just wondering is it a xcode bug or intentional?

Xcode Bundle ID Problem On 7.3.1 The Provisioning Profile does not match your Bundle Identifier.
 
 
Q