开发者

Code Sign error after changing Product Name of iOS app

开发者 https://www.devze.com 2023-03-24 03:37 出处:网络
I have to change the name of my app.I\'ve done the following (Xcode 4): Targets > Packaging > Product Name

I have to change the name of my app. I've done the following (Xcode 4):

Targets > Packaging > Product Name

And changed the name (for dev/ad hoc/release). When building I get the following error

Code Sign error: The identity 'iPhone Distribution' doesn't match开发者_StackOverflow社区 any identity in any profile

If I change the name back, it works fine. I can't submit to the store with the original name (the one that works). Do I need to create a new app ID in the provisioning portal? I'd hate to do that because I have push notifications already tied to the existing app ID.

I've tried 'clean' and then building again - doesn't help.


Yes. The provisioning profile is tied to a specific bundle id.

i.e. "com.mycompany.myproduct"

If you change this, it will definitely break code-signing.

Alternatively, change the app name, but leave the bundle identifier the same:

Targets > Info >

bundle display name = "my new product name" (remove the ${PRODUCT_NAME})
bundle identifier = "com.mycompany.myproduct" (remove the ${PRODUCT_NAME:rfc1034identifier})

0

精彩评论

暂无评论...
验证码 换一张
取 消