XCode bundle identifier formatting from {PRODUCT_NAME}

妖精的绣舞 提交于 2019-11-29 22:15:22

Just type it in?

i.e. instead of com.mycompany.${PRODUCT_NAME:rfc1034identifier} just type com.mycompany.MyApp

If you have more than one target that need different bundle names, one way of doing it is to create your own variable and use that instead.

In the build menu (select your project and choose Get Info), you can add your own variables to the project. If you make one called MY_BUNDLE_NAME and set it to MyApp, you can then put com.mycompany.${MY_BUNDLE_NAME} in the plist file. You should be able to set MY_BUNDLE_NAME to different values for different targets.

same bundle id should be on xcode and itunnes:

in this file $ touch Info.plist

Bundle Identifier (App ID Suffix) Enter a unique identifier for your App ID. The recommended practice is to use a reverse-domain name style string for the Bundle Identifier portion of the App ID.

Example: com.domainname.appname

Marcin S.

The accepted answer hasn't worked for me correctly. It seemed to change the bundle identifier however it messed up the whole app. In my case this solution worked fine: Change bundle identifier in Xcode when submitting my first app in IOS

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!