iPhone - Change bundle identifier

半世苍凉 提交于 2019-12-06 22:27:41

问题


Initially my app's bundle identifier was the default

MyCompany.${PRODUCT_NAME:rfc1034identifier}

This wasn't matching the app ID I created on the Developer Connection (a space in the product name was being turned into a hyphen) so I hard-coded the bundle identifier in MyApp-Info.plist to be

com.MyCompany.MyApp

However, when I log [NSBundle mainBundle] bundleIdentifier] it's still returning the old identifier. Cleaning the targets did not help. Can anyone think of where this is coming from, if not Info.plist?


回答1:


It looks like Info.plist was cached. This post had a great solution which updates the timestamp:

$ touch Info.plist


来源:https://stackoverflow.com/questions/9881485/iphone-change-bundle-identifier

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