ios 带有标识符 '' 的 App ID 不可用。请输入其他字符串
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20565565/
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
An App ID with Identifier '' is not available. Please enter a different string
提问by
I am trying to add a new APP ID to prepare for App Store submission and got the following error under the bundle ID I provided.
我正在尝试添加一个新的 APP ID 以准备 App Store 提交,但在我提供的捆绑 ID 下出现以下错误。
An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string.
An App ID with Identifier 'com.domainName.AppName' is not available. Please enter a different string.
What does this mean? I am trying to add a brand new App ID, of course it does not exist. What am I missing? I do not remember experience the problem last time I create an App ID.
这是什么意思?我正在尝试添加一个全新的 App ID,当然它不存在。我错过了什么?我不记得上次创建 App ID 时遇到过这个问题。
回答by Yevhen Dubinin
update
更新
As of Xcode 8, iOS Team Provision Profile Managed by Xcodeare now updated by Xcode automatically and correctly. They are not even listed at the Developer Portal, but generated on-the-flight.
从 Xcode 8 开始,由 Xcode 管理的 iOS Team Provision Profile现在由 Xcode 自动正确更新。它们甚至没有在 Developer Portal 中列出,而是在运行中生成的。
However, the solution proposed below will still work. I've switched to using the automatic provisioning profiles.
但是,下面提出的解决方案仍然有效。我已经切换到使用自动配置文件。
tl;dr
tl;博士
Remove INVALID iOS Team Provision Profile Managed by Xcodefrom Developer Portal and manually create iOS Developer Provision Profile. Download it via Xcode and you should be good to go.
从 Developer Portal 中删除由 Xcode 管理的INVALID iOS Team Provision Profile并手动创建iOS Developer Provision Profile。通过Xcode下载它,你应该很高兴。
details
细节
Problem:
问题:
I started to experience this after Xcode 7.3 (7D175).
我在 Xcode 7.3 (7D175) 之后开始体验到这一点。
What I did before the issue:
我在问题之前做了什么:
- renewed Certificates (developer & distribution) via Xcode, b/c of their expiration;
- installed two required certificates (developer & distribution) in my keychain;
- re-generated Ad Hoc and App Store Provision profiles at Developer portal with new distribution certificate;
- downloaded locally Ad Hoc and App Store Provision profiles via Xcode;
- walk the project through the process of Setting up Xcode to automatically manage your provisioning profiles
- noticed iOS Team Provision Profile Managed by Xcode was INVALID
- saw Xcode being not able to Build & Run due to INVALID iOS Team Profile.
- 通过 Xcode 更新证书(开发者和发行版),有效期的 b/c;
- 在我的钥匙串中安装了两个必需的证书(开发者和发行版);
- 使用新的分发证书在开发人员门户重新生成 Ad Hoc 和 App Store Provision 配置文件;
- 通过 Xcode 在本地下载 Ad Hoc 和 App Store Provision 配置文件;
- 引导项目完成设置 Xcode 以自动管理您的配置文件的过程
- 注意到由 Xcode 管理的 iOS Team Provision Profile 是无效的
- 看到 Xcode 由于无效的 iOS 团队配置文件而无法构建和运行。
Tapping "Fix Issue" (the only way, I know to make provision profiles managed by Xcode valid), given the error An App ID with Identifier '<app id>' is not available
.
考虑到错误,点击“修复问题”(我知道这是使 Xcode 管理的配置文件有效的唯一方法)An App ID with Identifier '<app id>' is not available
。
Solution:
解决方案:
I have:
我有:
- manually removed INVALID iOS Team Provision Profile Managed by Xcode from Developer Portal
- manually created iOS Developer Provision profile
- Downloaded it via Xcode
- 从开发人员门户手动删除由 Xcode 管理的无效 iOS 团队配置文件
- 手动创建的 iOS 开发人员配置文件
- 通过Xcode下载它
Now, I am able to Build & Run app to my devices.
现在,我可以在我的设备上构建和运行应用程序。
回答by Oz Solomon
TL;DRXcode is very particular about the nameyou give your App ID in the member center. Having the correct bundle identifier is not enough. You must use the specific format shown below for Xcode to "see" your App ID.
TL;DRXcode 非常讲究你在会员中心给你的 App ID 起的名字。拥有正确的包标识符是不够的。您必须使用下面显示的特定格式让 Xcode 来“查看”您的 App ID。
Update: According to @isaacselement in the comments below, this issue has been resolved in Xcode 7.3.1.
更新:根据@isaacselement 在下面的评论中,此问题已在 Xcode 7.3.1 中解决。
@romrom's solution of deleting the App ID and having Xcode create a new one was a clue. Unfortunately it was a nonstarter for me since my App ID was used by a Store app and therefore could not be deleted.
@romrom 删除 App ID 并让 Xcode 创建一个新 App ID 的解决方案是一个线索。不幸的是,由于我的 App ID 被 Store 应用程序使用,因此无法删除,因此这对我来说是不可能的。
However, I discovered through some experimentation that I could solve the problem by manually editing the exiting App ID. It turns out that Xcode is really picky about the nameof the ID, and not just the bundle ID.
但是,我通过一些实验发现,我可以通过手动编辑退出的App ID来解决问题。事实证明,Xcode对 ID的名称非常挑剔,而不仅仅是包 ID。
For a typical bundle ID such as com.mycompany.appname, the App ID name must be in this format:
对于典型的包 ID(例如com.mycompany.appname ),App ID 名称必须采用以下格式:
XC com mycompany appname
a name in any other format won't be seen by Xcode.
Xcode 不会看到任何其他格式的名称。
How to check if you're affected / How to Fix
如何检查您是否受到影响/如何修复
- Log in to the Member Center.
- Click on "Certificates, Identifiers & Profiles".
- One the left-hand navigation bar, click on "App IDs".
- Locate the App ID with your bundle identifier.
- If that App ID doesn't have the correct name format (as shown above), click on it then click the Edit button.
- Change the name and click Done.
- Enjoy the reduction in stress and anger.
- 登录会员中心。
- 单击“证书、标识符和配置文件”。
- 在左侧导航栏中,单击“App ID”。
- 使用您的包标识符找到 App ID。
- 如果该 App ID 的名称格式不正确(如上所示),请单击它,然后单击“编辑”按钮。
- 更改名称并单击完成。
- 享受压力和愤怒的减轻。
P.S. There are some related problems if you're using Xcode 7.3in which it won't automatically create proper distribution profiles for you, even if you fix the name as I mentioned above. The solution is to downgrade to 7.2.1 or 7.3 Beta or use a tool like fastlane/sigh.
PS如果您使用的是 Xcode 7.3,则存在一些相关问题,即使您按照我上面提到的方式修复了名称,它也不会自动为您创建正确的分发配置文件。解决方案是降级到 7.2.1 或 7.3 Beta 或使用像 fastlane/sigh 这样的工具。
回答by Amit Ajmera
I had the same issue and solved by following steps below:
我遇到了同样的问题,并通过以下步骤解决了:
Go to Xcode
Preferences
>Accounts
>Choose your Apple ID account
Tap on
View Details
Tap on
Download all
and thenDone
去的Xcode
Preferences
>Accounts
>Choose your Apple ID account
轻按
View Details
点击
Download all
然后Done
However it was working fine earlier but I don't know the reason why it stopped suddenly. I have gone through the steps above and found it working properly.
然而,它早些时候工作正常,但我不知道它突然停止的原因。我已经完成了上面的步骤,发现它工作正常。
回答by Guilherme
You may have no app with that same ID, but someone else may. The IDs must be unique globally, and not only within your own apps.
您可能没有具有相同 ID 的应用程序,但其他人可能没有。这些 ID 必须是全局唯一的,而不仅仅是在您自己的应用程序中。
回答by Vladislav
Solution for Xcode 7.3
.
的解决方案Xcode 7.3
。
Go to
去
Member Center -> Certificates, Identifiers & Profiles -> Provisioning Profiles -> All
Find certificate for your App ID
, it should be invalid, Edit, Select your iOS
Distribution certificate, Generate. Go to:
为您的 查找证书App ID
,它应该是无效的,编辑,选择您的iOS
分发证书,生成。去:
Xcode -> Preferences -> Accounts -> View Details -> Download all
回答by Imran
Version 7.3 (7D175)
7.3 版 (7D175)
The Application ID Name should be same as application bundle identifier, if you application bundle identifier is com.abc.xyzthan the application ID name for this bundle ID should be XC com abc xyz
应用程序 ID 名称应与应用程序包标识符相同,如果您的应用程序包标识符是com.abc.xyz,则此包 ID 的应用程序 ID 名称应为XC com abc xyz
A name in any other format won't be seen by Xcode.
Xcode 不会看到任何其他格式的名称。
回答by ylgwhyh
回答by AaoIi
Same issue happened with me, it might be that Xcode automatically selected another team name, its solved by choosing my correct team name. Good luck !
我也遇到了同样的问题,可能是 Xcode 自动选择了另一个团队名称,通过选择我正确的团队名称来解决。祝你好运 !
回答by Siddharth
I got solution for this kind of problem by selecting this option at the time of build export.
通过在构建导出时选择此选项,我得到了此类问题的解决方案。
Regularly I select second option for build export process but after installing Xcode 7.3 when I try to export build at that time I receive above error. After some sort of forum discussion, I conclude that I need to select last option now to export build.
我经常为构建导出过程选择第二个选项,但是在安装 Xcode 7.3 之后,当我尝试导出构建时,我收到上述错误。经过某种论坛讨论后,我得出结论,我现在需要选择最后一个选项来导出构建。
I hope this information become helpful to other members of forum as well.
我希望这些信息对论坛的其他成员也有帮助。
回答by Levi Lais
I had this problem, too. It turns out that the problem and solution are quite simple. When an Xcode user runs an app on a device using their free personal account, the Bundle ID is registered to the personal account. Then, when the user upgrades to a paid Apple Dev account and tries to create an App ID using that Bundle ID - the backend system thinks that Bundle ID has been taken.
我也有这个问题。事实证明,问题和解决方案非常简单。当 Xcode 用户使用他们的免费个人帐户在设备上运行应用程序时,Bundle ID 会注册到个人帐户。然后,当用户升级到付费 Apple Dev 帐户并尝试使用该 Bundle ID 创建 App ID 时 - 后端系统认为 Bundle ID 已被占用。
Fill out the form here at this website: https://developer.apple.com/contact/submit/under the "Certificates, Identifiers, Profilescategory”. I did this and the problem was solved in less than 12 hours. This was Apple's emailed response: "When you install an app on a device from Xcode using your Personal Team, the Bundle ID is registered to that account. I have deleted the Bundle ID "com.AppVolks.Random-Ruby” so it can now be registered on your paid membership.”
在此网站上填写表格:https: //developer.apple.com/contact/submit/在“Certificates, Identifiers, Profilescategory”下。我这样做了,问题在不到 12 小时内得到解决。这是 Apple 的电子邮件回复:“当您使用个人团队从 Xcode 在设备上安装应用程序时,捆绑 ID 已注册到该帐户。我已经删除了 Bundle ID“com.AppVolks.Random-Ruby”,因此现在可以在您的付费会员中注册它。”
Hope that helps!
希望有帮助!