XCode not allowing pre-existing Bundle ID

I have an application, released a few years back. The bundle ID starts with a digit, this used to be allowed. Now Xcode replaces the digit with a dash -, ie. 7K998EA8RN.org.nelsonmandela.quotes becomes -K998EA8RN.org.nelsonmandela.quotes

Therefore on upload I get an error saying that the bundle ID does not match.

If I end it the info manually and set the Bundle ID there, I can make it further down the process but still errors out as the application-identifier still becomes A8V6VR9K7C.-K998EA8RN.org.nelsonmandela.quotes the error returned is:

ERROR ITMS-90046: "Invalid Code Signing Entitlements. Your application bundle's signature contains code signing entitlements that are not supported on iOS. Specifically, value 'A8V6VR9K7C.-K998EA8RN.org.nelsonmandela.quotes' for key 'application-identifier' in 'Payload/MandelaQuotes.app/MandelaQuotes' is not supported. This value should be a string starting with your TEAMID, followed by a dot '.', followed by the bundle identifier."

Any idea on how to resolve this to push an update to this existing application?

Thanks

Adding a prefix like 7K998EA8RN to your bundle ID is weird. If you were creating a new app, my advice would be “Stop doing that.” However, if you’ve already shipped the app, there’s no way to fix that without creating a new app.

As to why Xcode is changing this, I can see the thinking behind that but it’s clearly causing you problems. And yours isn’t the only app with a bundle ID of this form. I encourage you to file a bug against Xcode asking it to stop doing this transformation. Please post your bug number, just for the record.

As to what you can do about this, it seems that Xcode does not do this substitution when you set the bundle ID via the Product Bundle Identifier build setting (PRODUCT_BUNDLE_IDENTIFIER). By doing that I was able to create an app with a bundle ID prefix like yours:

% plutil -p Test694864.app/Info.plist | grep CFBundleIdentifier
  "CFBundleIdentifier" => "7K998EA8RN.com.example.apple-samplecode.Test694864"

I haven’t tried actually submitting that to the store, but I think that’ll probably work.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

XCode not allowing pre-existing Bundle ID
 
 
Q