Invalid Bundle Identifier Format

I'm getting this email below everytime I try to upload my Mac app. Version 1.0 for this happ but I've submitted hundreds of updates/apps before with no issue. My CFBundleIdentifier = com.nuclearnova.mac.birdiegolf , any ideas ass to what could be wrong? I feel like I'm missing something silly here as this is so simple, but I waited a day and looked at it again and still can't figure it out. Also, this happens both before and after the WWDC system upgrades today


Dear developer,

We have discovered one or more issues with your recent delivery for "Birdie Golf". To process your delivery, the following issues must be corrected:

Invalid Bundle Identifier Format - The bundle identifier, as specified via the key CFBundleIdentifier in the bundle's Info.plist file, must consist only of characters that are uppercase or lowercase Roman letters (A-Z, a-z), the digits 0 through 9, dot ("."), or hyphen ("-"). For more information about bundle identifiers, the CFBundleIdentifier key, and the Info.plist file, see the Mac Developer Library at https://developer.apple.com/library/mac/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/TP40009249-102070-TPXREF105

Once these issues have been corrected, you can then redeliver the corrected binary.

Regards,

The App Store team

Answered by nuclearnova in 8869022

Finally solved the issue, here was the problem if anyone is interested


My app has a helper executable, which I precompile and presign beforehand. For some reason three years ago I included an info.plist in the helper and compiled like this

gcc -Wall -arch i386 -arch x86_64 -Os -framework AppKit -o NNRelaunch NNRelaunch.m -sectcreate __TEXT __info_plist Info.plist


<plist version="1.0">
<dict>
  <key>CFBundleIdentifier</key>
  <string>com.nuclearnova.mac.birdiegolf</string>
  <key>CFBundleName</key>
  <string>Birdie Golf</string>
</dict>
</plist>


After removing "-sectcreate __TEXT __info_plist Info.plist" everything uploads and processes fine.


Is this a bug or did/am I doing something wrong? As long as my app gets approved I guess I don't really care, strange how updates worked fine for 3 years on my last app doing this and suddenly stopped working.

Do you have a space or newline at the beginning/end? perhaps it not obvious by looking at it in the plist. Check the plist as source to see exactly what's there in teh XML.

No such luck Jeff, I checked the plist file as XML and even recreated the item but it apperas to be good.


Looks like I'm using Applcation Loader 3.1, I'm falling back and trying version 3.0 now. XCode 6.3.2 and OS 10.10.4, maybe I'll have to go back and try 10.10.3

Have you tried using xcconfig files by doing this:


myBundleIDPrefix = com.nuclearnova.mac
myBundleIDSufix = birdiegolf
myBundleID = $(myBundleIDPrefix).$(myBundleIDSuffix:rfc1034identifier)


Then in the info.plist:


  <key>CFBundleIdentifier</key>
  <string>$(myBundleID)</string>

I have not yet, I will try that here after updating to the latest 10.10.4 seed. Just tried submitting another working app in it's place with no luck and tried creating a new entry in iTunesConnect with no luck either. I'm wondering if $(TeamIdentifierPrefix)com.nuclearnova.mac.birdiegolf in the entitlements for com.apple.developer.ubiquity-kvstore-identifier could be doing anything, maybe the $ is not being replaced like it should Going to try changing that too.

Still no luck, I even had another signed executable inside the package that I tried switching the identifier with but no luck. Going to try AdrianS's suggestion later today... So frustrating on the timing since all of the engineers for support are at WWDC this week and aren't answering emails now.

Accepted Answer

Finally solved the issue, here was the problem if anyone is interested


My app has a helper executable, which I precompile and presign beforehand. For some reason three years ago I included an info.plist in the helper and compiled like this

gcc -Wall -arch i386 -arch x86_64 -Os -framework AppKit -o NNRelaunch NNRelaunch.m -sectcreate __TEXT __info_plist Info.plist


<plist version="1.0">
<dict>
  <key>CFBundleIdentifier</key>
  <string>com.nuclearnova.mac.birdiegolf</string>
  <key>CFBundleName</key>
  <string>Birdie Golf</string>
</dict>
</plist>


After removing "-sectcreate __TEXT __info_plist Info.plist" everything uploads and processes fine.


Is this a bug or did/am I doing something wrong? As long as my app gets approved I guess I don't really care, strange how updates worked fine for 3 years on my last app doing this and suddenly stopped working.

Invalid Bundle Identifier Format
 
 
Q