Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPhone - Change bundle identifier

Tags:

ios

nsbundle

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?

like image 702
serverpunk Avatar asked Mar 26 '12 23:03

serverpunk


People also ask

How do I change my product bundle identifier?

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.

How do I change my Apple Developer bundle ID?

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.

How do I change the bundle identifier in iOS react native?

Click the root item in the left panel ProjectName. In the center view, click General. Under identity , change the Bundle identifier.


1 Answers

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

$ touch Info.plist
like image 125
serverpunk Avatar answered Oct 21 '22 12:10

serverpunk