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?
It looks like Info.plist was cached. This post had a great solution which updates the timestamp:
$ touch Info.plist