ios “带有捆绑标识符 X 的 App ID 不可用。请输入不同的字符串”(Xcode 7.3)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36206696/
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 bundle identifier X is not available. Please enter a different string" (Xcode 7.3)
提问by Warblr
After updating to the latest build of Xcode 7.3 (7D175), every time I try to Export for adhoc distribution I get the above error. Everything was working fine up until the update. The bundle ID is definitely my own, registered to this application. I've tried recreating my certificates, provisioning profiles, deleting old ones, frantically clicking the 'try again' button ... nothing seems to work.
更新到最新版本的 Xcode 7.3 (7D175) 后,每次尝试导出以进行临时分发时,都会出现上述错误。一切正常,直到更新。捆绑 ID 绝对是我自己的,已注册到此应用程序。我试过重新创建我的证书,配置配置文件,删除旧的,疯狂地点击“再试一次”按钮......似乎没有任何效果。
Any one find a solution to this? I saw some others were facing the same problem, but none of their solution seem to work for me (https://stackoverflow.com/a/36192586/1542275, https://stackoverflow.com/a/36175175/1542275)
有没有人找到解决这个问题的方法?我看到一些人正面临着同样的问题,但没有他们的解决方案似乎为我工作(https://stackoverflow.com/a/36192586/1542275,https://stackoverflow.com/a/36175175/1542275)
update: I'm not sure if this is relevant, but for the heck of it I tried to 'validate' the build. I did and it passed. Anyway, just before you fire off the validation you get the information screen that shows you all the details about the attached prov-profile. I noticed that despite selecting my adhoc prov-profile, the information screen (just before validating) said that it was using my distribution profile. I then removed my distribution profile from xcode, re-archived, and now validation is failing. Something weird seems to be going on with archiving, adhoc, and exporting.
更新:我不确定这是否相关,但我试图“验证”构建。我做了,它通过了。无论如何,就在您启动验证之前,您会看到信息屏幕,其中显示了有关所附 prov-profile 的所有详细信息。我注意到尽管选择了我的 adhoc prov-profile,信息屏幕(就在验证之前)说它正在使用我的分发配置文件。然后我从 xcode 中删除了我的分发配置文件,重新存档,现在验证失败。存档、临时和导出似乎发生了一些奇怪的事情。
回答by AlexanderZ
I just installed Xcode 7.2.1 and could successfully export AdHoc build with it. While Xcode 7.3 keeps on telling that there is something wrong with bundle identifier.
我刚刚安装了 Xcode 7.2.1 并且可以使用它成功导出 AdHoc 构建。虽然 Xcode 7.3 一直在说 bundle identifier 有问题。
UPDATE:
更新:
Looks like changing the "Name" (not the ID) of App ID in developer portal under "Certificates, Identifiers & Profiles" to the next format "XC com mycompany appname" (in case your app ID was com.mycompany.appname) helps Xcode see your appID. Strange but it's working.
看起来将“证书、标识符和配置文件”下的开发人员门户中 App ID 的“名称”(不是 ID)更改为下一个格式“XC com mycompany appname”(如果您的应用 ID 是 com.mycompany.appname)有帮助Xcode 查看您的 appID。奇怪,但它的工作。
回答by ylgwhyh
回答by Warblr
OK - I may have a solution. Though you won't like it because it is a major pain. I went to Apple members center, deleted all of my certs all of my profiles and started from scratch.
好的 - 我可能有一个解决方案。虽然你不会喜欢它,因为它是一个很大的痛苦。我去了苹果会员中心,删除了我所有的证书和我的个人资料,然后从头开始。
I wish I had solid steps to give you to follow but I did so much that I'd honestly just be guessing. In the end here is what I'd suggest:
我希望我有坚实的步骤让你遵循,但我做了太多,老实说,我只是在猜测。最后,我的建议是:
- Revoke all certificates
- Delete all provisioning profiles; both in the member center and on your computer.
- Create new certificates
- Create new provisioning profiles using new certs.
- 撤销所有证书
- 删除所有配置文件;在会员中心和您的电脑上。
- 创建新证书
- 使用新证书创建新的配置文件。
I'm now able to create adhoc builds and exportthem using xcode 7.3.
我现在可以使用 xcode 7.3创建临时构建并导出它们。
All of that said, do this with the intention to get into some BS. It took me a long time to get things set up and working again. From re-creating all of the above to countless device, xcode, and computer restarts.
所有这一切都说,这样做是为了进入一些BS。我花了很长时间才把事情设置好并重新开始工作。从重新创建上述所有内容到无数设备、xcode 和计算机重新启动。
Now a new issue has come up - dyld: Library not loaded: @rpath/
regarding one of my swift cocoapods ... so more fun. What a wasted day :(
现在出现了一个新问题 -dyld: Library not loaded: @rpath/
关于我的一个快速可可豆......所以更有趣。真是浪费了一天:(
回答by r590
I was getting this error using Xcode 7.3.1. The cause was using the wrong "Team" on the General tab of the main target. I had my company's Team, and my own AppleID that was a "Free" personal account. After I switched to my company's Team, the error went away.
我在使用 Xcode 7.3.1 时遇到此错误。原因是在主要目标的“常规”选项卡上使用了错误的“团队”。我有我公司的团队和我自己的 AppleID,这是一个“免费”的个人帐户。在我切换到我公司的团队后,错误消失了。
回答by Niko Zarzani
Sometimes after you click on Export the selected Team doesn't match the one in the certificate. You should check that the selected Team is correct if you have multiple teams on the same machine.
有时在您单击“导出”后,所选团队与证书中的团队不匹配。如果您在同一台机器上有多个团队,您应该检查所选团队是否正确。
回答by Mohit Singh
Nothing was working for me in Xcode 7.3. This can save you a lot of time, I solved it this way:
在 Xcode 7.3 中没有什么对我有用。这可以节省你很多时间,我是这样解决的:
Xcode -> Preferences -> Accounts -> Provisioning Profiles -> Right Click them and move them to trash. Quit Xcode.
Member Center -> Provisioning Profiles -> All -> Deleted everything here (I have a single iOS app). Created a fresh new Profile with my app ID.
Member Center -> App IDs -> My App ID was of the form
Xcode -> Preferences -> Accounts -> Provisioning Profiles -> 右键单击它们并将它们移动到垃圾箱。退出 Xcode。
Member Center -> Provisioning Profiles -> All -> 删除这里的所有内容(我有一个 iOS 应用程序)。使用我的应用 ID 创建了一个全新的配置文件。
会员中心 -> App IDs -> 我的 App ID 是这样的
Xcode iOS App ID com myDomain myApp
Xcode iOS App ID com myDomain myApp
. If this is your case, blindly follow along -> Edit it, and try renaming it to the form
. 如果这是您的情况,请盲目跟随 -> 编辑它,然后尝试将其重命名为表单
XC com myDomain myApp
XC com myDomain myApp
-> if it says "Enter a valid name" in red, be patient a drop down will appear if your cursor is inside the Name text field - choose it and click Save. [Don't ask what's going on here, it just works - we have better things to deal with]
-> 如果它以红色显示“输入有效名称”,请耐心等待,如果您的光标位于“名称”文本字段内,则会出现一个下拉列表 - 选择它并单击“保存”。[不要问这里发生了什么,它只是有效 - 我们有更好的事情要处理]
- Open Xcode and click on that "Fix Issue" button which usually complicates things - surprisingly this time, it'll ease them!
- 打开 Xcode 并单击“修复问题”按钮,这通常会使事情变得复杂 - 令人惊讶的是,这一次,它会减轻问题!
回答by Kanchan
回答by Satyen Chauhan
Just need to add prefix in your app id
只需要在您的应用程序 ID 中添加前缀
Ex:
前任:
- Name:MyApp
- Prefix:KMW5E9785J
- ID:com.myapp.app
- 名称:我的应用程序
- 前缀:KMW5E9785J
- ID:com.myapp.app
it should be KMW5E9785J.com.myapp.app in your Bundle identifier in info.plist
它应该是 KMW5E9785J.com.myapp.app in your Bundle identifier in info.plist
So No need to change XC or anything from your dev portal
所以无需从您的开发门户更改 XC 或任何内容
回答by Sandi Laufenberg-Deku
I only had to change the provisioning profile to a different one. I had made one of each type: Development, Ad Hoc Distribution, and Store Distribution.
我只需要将配置文件更改为不同的配置文件。我为每种类型制作了一个:开发、临时分发和商店分发。
Once I changed to Development, the error went away. Seems so simple. But sometimes it is simple, Thanks to God. LOL.
一旦我更改为开发,错误就消失了。看起来如此简单。但有时很简单,感谢上帝。哈哈。
回答by Udeep
I had the same error with my Ionic project when I imported it to Xcode. I had right team selected and right bundle identifier mentioned in the GeneralTab of the Target(the same team and identifier I had used in App Store to register)as shown in this picture . I had all the certificates/provisioning profiles downloaded needed for the project. Yet it complained.
将 Ionic 项目导入 Xcode 时,我遇到了同样的错误。我有合适的团队选择并在所提到的右束标识符一般的的标签目标(同一队和标识为i在应用商店已经用于注册)所示在这张照片。我已经下载了项目所需的所有证书/配置文件。然而它抱怨了。
How I solved it?
我是怎么解决的?
I checked the Code Signing sectionin the Build Settingsof the Target. Please click here to see.In the Code Signing Identityarea, I saw, the Xcode automatically selected iOS Distributionfor all section of that area. I then, changed the value for the Debugand Releasesection to the identity that contained my Team Id. And it worked. All the errors were gone!!!
我检查了Target的Build Settings中的Code Signing 部分。请点击这里查看。在Code Signing Identity区域,我看到 Xcode 自动为该区域的所有部分选择了iOS Distribution。然后,我将Debugand Release部分的值更改为包含我的Team Id的身份。它奏效了。所有的错误都消失了!!!
In my case, the problem was that the Xcode used to generate its own Team Id (XC) in the previous cases.
就我而言,问题在于 Xcode 在以前的情况下用于生成自己的团队 ID (XC)。
You might also have to manually select the Provisioning Profiletoo (just in case if the Xcode selects wrong profile)
您可能还必须手动选择Provisioning Profile(以防万一 Xcode 选择了错误的配置文件)
I hope this helps someone.
我希望这可以帮助别人。