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?
Change the Bundle IDChoose your project from the left side, then your app target under TARGETS, select the General tab and rename the Bundle Identifier.
iTunes connect -> Your app -> on the left side panel App information and under General information you can locate the bundle ID drop down menu and select a different id and then save your changes. Don't forget to add the new id to Apple developer portal 1st.
Click the root item in the left panel ProjectName. In the center view, click General. Under identity , change the Bundle identifier.
It looks like Info.plist was cached. This post had a great solution which updates the timestamp:
$ touch Info.plist
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With