How to change the bundle identifier of an app in Xcode 5?

前端 未结 6 2303
夕颜
夕颜 2020-12-13 05:51

Xcode 5 won\'t let me change the bundle identifier. The app name portion after com.mycompany. is greyed out.

I created a bundle identifier in ITC which

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-13 06:24

    Actually this is pretty simple:

    1. Select your target
    2. Select 'info' tab (you can do the same by finding the plist file on the project)
    3. Search for "Bundle Identifier" key, The value on your end should be com.mycompany.${PRODUCT_NAME:rfc1034identifier}.

    If you want to change the grey field just replace the "com.mycompany" with whatever you want. the other field is the "Product Name" (which is read dynamically from the relevant key), You can change it by set the "Product Name" key on "Build Settings". You can also do it pretty ugly and change all the bundle identifier to whatever you want but I don't recommend that because if you would add more targets it would be static and harder to maintain.

提交回复
热议问题