xcode 标识符为“com.Company.ProductName”的应用 ID 不可用,请输入其他字符串

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32899830/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 07:59:11  来源:igfitidea点击:

An app ID with Identifier 'com.Company.ProductName' is not avalible, please enter a different string

xcodeunity3d

提问by lego116

Trying to test my unity app in xcode and when I click run it says:

尝试在 xcode 中测试我的统一应用程序,当我单击运行时,它说:

An app ID with Identifier 'com.Company.ProductName' is not avalible, please enter a different string

标识符为“com.Company.ProductName”的应用 ID 不可用,请输入其他字符串

Any ideas? Thanks

有任何想法吗?谢谢

回答by Abhinav

App ID must be globally unique. That is why reverse DNS naming convention is suggested. Please ensure your Bundle Identifieris unique.

App ID 必须是全局唯一的。这就是为什么建议使用反向 DNS 命名约定的原因。请确保您Bundle Identifier是独一无二的。

回答by Antz

Before you build your app, in unity go into -

在构建应用程序之前,请统一进入 -

Build Settings > Player Settings > Bundle Identifier

构建设置 > 玩家设置 > 捆绑标识符

Change this to com.Company.ProductName format. You can change your company and product name in the player settings.

将其更改为 com.Company.ProductName 格式。您可以在播放器设置中更改您的公司和产品名称。

Cheers.

干杯。

回答by Kunal Gupta

I faced the same problem when i upgraded my Xcode to 7.3 and it showed me the same error in every project. The simplest solution that i found was to just the remove the apple account from Xcode and add it again.

当我将 Xcode 升级到 7.3 时,我遇到了同样的问题,它在每个项目中都显示了相同的错误。我发现的最简单的解决方案是从 Xcode 中删除苹果帐户并再次添加它。

To remove just go to Xcode > Preferences > Select the account and click on - sign.

要删除只需转到 Xcode > 首选项 > 选择帐户并单击 - 签名。

enter image description here

在此处输入图片说明

If in case this still doesn't work . Then perform a next step of downing your provisioning profile again and run it.

如果这仍然不起作用。然后执行下一步再次关闭您的配置文件并运行它。

Hope this helps. All the best

希望这可以帮助。祝一切顺利

回答by Dan

None of the typical solutions for this problem worked for me. I then found this from Apple:

这个问题的典型解决方案都不适合我。然后我从Apple找到了这个:

Xcode unable to create distribution builds for App Store submissions or Enterprise apps. This issue occurs when the expired WWDR Intermediate certificate is present in both the System keychain and Login keychain within the Keychain Access application. To resolve the issue, first download and install the renewed certificate. Next, in the Keychain Access application, select the System keychain. Select 'Show Expired Certificates' in the View menu and then delete the expired version of the Apple Worldwide Developer Relations Certificate Authority Intermediate certificate. Your certificates should now appear as valid in Keychain Access and be available to Xcode.

Xcode 无法为 App Store 提交或企业应用程序创建分发版本。当过期的 WWDR 中间证书同时存在于 Keychain Access 应用程序中的 System keychain 和 Login keychain 时,就会出现此问题。要解决此问题,请先下载并安装更新的证书。接下来,在 Keychain Access 应用程序中,选择 System keychain。在“查看”菜单中选择“显示过期证书”,然后删除 Apple 全球开发者关系证书颁发机构中间证书的过期版本。您的证书现在应该在 Keychain Access 中显示为有效并可用于 Xcode。

Replacing the WWDR Intermediate certificate per Apple's directions worked for me.

根据 Apple 的指示更换 WWDR 中级证书对我有用。

回答by AndaluZ

Chances are that you have done the right thing and that the App ID is correct.

很有可能你做了正确的事情并且 App ID 是正确的。

The solution is as follows: Quit Xcode, just to be sure. Remove all the existing provision profiles on your mac, you can find them in: /YourHomeDirectory/Library/MobileDevice/Provisioning Profiles/ This way, you have a clean sheet to begin.

解决方法如下: 退出 Xcode,只是为了确定。删除 Mac 上所有现有的配置文件,您可以在以下位置找到它们:/YourHomeDirectory/Library/MobileDevice/Provisioning Profiles/ 这样,您就有了一张干净的工作表。

In Member Center, remove the related profiles in the Distribution section of your iOS Certificate (the profiles you used to Archive your app with). Than recreate them one by one and when creating, make sure to select the right Distribution and the right App ID. After that, download those new profiles to your mac. Than double click on those profiles so Xcode automatically adds them to the folder: /YourHomeDirectory/Library/MobileDevice/Provisioning Profiles/ You can check that the profiles are added there (but the filenames are changed to a hashed kind of character).

在会员中心,删除 iOS 证书的分发部分中的相关配置文件(用于存档应用程序的配置文件)。然后一一重新创建它们,在创建时,请确保选择正确的分发和正确的 App ID。之后,将这些新配置文件下载到您的 Mac。然后双击这些配置文件,以便 Xcode 自动将它们添加到文件夹:/YourHomeDirectory/Library/MobileDevice/Provisioning Profiles/ 您可以检查配置文件是否已添加到那里(但文件名已更改为散列字符)。

Start Xcode and try to Archive your app again, if you followed the steps well, distributing should now work. Good luck!

启动 Xcode 并再次尝试存档您的应用程序,如果您按照这些步骤操作得很好,那么分发现在应该可以工作了。祝你好运!