简体   繁体   中英

$(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:

在此处输入图像描述

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

在此处输入图像描述

在此处输入图像描述

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.

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 .

构建设置

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

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM