简体   繁体   中英

Provisioning issue in Xcode when using multiple configurations

I have 2 different schemes, pointing to two different bundle identifiers.

com.myapp.appname

com.myapp.appname.Debug

Each point to 2 different provisioning profiles.

Whenever I do a run on the scheme with the debug bundle id - I get an error saying my provisioning profiles bundle id (com.myapp.appname.Debug) does not match my apps bundle id (com.myapp.appname) - even though the bundle id that I'm currently building with is actually com.myapp.appname.Debug

To test further, I changed it to use the provisioning profile for com.myapp.appname

The build succeeded without error, but wouldn't install on the device because it was signing with invalid entitlements. Because the bundle ID of the app is actually com.myapp.appname.Debug

Any thoughts on why it is looking for the wrong bundle identifier during the code signing process?

Found the issue. Changing the bundle identifier in my info.plist did not update the Product Bundle Identifier under packaging in Build Settings.

Change it there fixed the issue. Not sure if changing the bundle identifier in the info.plist should update that property or not. This is in Xcode 7.3.1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM