Home > OS >  $(PRODUCT_BUNDLE_IDENTIFIER) is not a valid bundle identifier
$(PRODUCT_BUNDLE_IDENTIFIER) is not a valid bundle identifier

Time:08-15

I'm porting a Chrome extension to Safari. I can test the extension locally, it works. I can also build it locally, I get no errors.

When I try to upload it to App Store Connect, I get the following errors:

enter image description here

This doesn't make much sense to me. I do have valid Bundle identifiers set in my Targets > General > Identity:

enter image description here

enter image description here

But somehow my bundle identifiers do not seem to get applied when an archive is built. I am very new to XCode. Any tips on how to debug and/or fix this would be greatly appreciated.

CodePudding user response:

Click on project at the top of the source file tree in the left sidebar, select the target in a mini sidebar on the left, and switch to Build Settings. In build settings select the following filter: All, Combined.

Then type in the following in the search bar on the right hand side: PRODUCT_BUNDLE_IDENTIFIER and verify that both Release and Debug configurations have sane values set. Then do the same for PRODUCT_NAME.

Build settings

CodePudding user response:

Your bundle identifier has a hyphen in it. That's what's illegal about it.

  • Related