Search code examples
iosxcodemacos

$(PRODUCT_BUNDLE_IDENTIFIER) is not a valid bundle identifier


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.


Solution

  • The problem was not solved by the above suggested questions. It turns out that I had to port the Chrome extension again, using the most recent XCode. (The original porting happened using an earlier version of XCode).