Invalid Bundle Identifier Error at Notarization

Notarizing an app may fail with the error message:

Error: ERROR ITMS-4302: "The software asset has an invalid primary bundle identifier: '...'" at ...

The issue is that the bundle identifier may have invalid characters. Check your bundle identifier for

  • spaces
  • underscores
  • anything else besides letters, numbers, hyphens, and periods

Notably check for leading or trailing spaces – open the bundle’s Info.plist file using a text editor and see the value of CFBundleIdentifier whether there are any leading or trailing spaces. Be sure to check the final version in the bundle that you are about to notarize. It may happen that a poorly programmed custom build script inadvertently inserted a space there.

A bundle identifier will globally identify the bundle. Apple expects it to be in a reverse DNS format – hence ideally it starts with the domain that you already have control of to ensure its uniqueness. For example, only name a bundle only if you’ve bought the domain name.

Furthermore if your app bundle contains app extensions, all extensions contained must be prefixed with the containing app’s bundle identifier. For an app with the bundle identifier, it’s share extension would be named something like

Read more on bundle identifiers from Xcode’s manual pages..

Avoid App Review rules by distributing outside the Mac App Store!

Get my FREE cheat sheets to help you distribute real macOS applications directly to power users.

* indicates required

When you subscribe you’ll also get programming tips, business advices, and career rants from the trenches about twice a month. I respect your e-mail privacy.

0 thoughts on “Invalid Bundle Identifier Error at Notarization