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?