xcode 未能创建配置文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39603667/
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
Failed to create provisioning profile
提问by Labanino
I'm trying to create a project in Xcode, Version 8.0 beta 6 (8S201h) and I'm getting this error.
我正在尝试在 Xcode 版本 8.0 beta 6 (8S201h) 中创建一个项目,但出现此错误。
The apple account is a free one because I'm just playing around with Xcode but it is forcing me to set it as a Team. Any help?
苹果帐户是免费的,因为我只是在玩 Xcode,但这迫使我将其设置为团队。有什么帮助吗?
采纳答案by matt
Check the schemes menu at the top of the Xcode project window. Look at the destination you're trying to run in. If you run in the simulator, you don't need to sign your project.
检查 Xcode 项目窗口顶部的方案菜单。查看您尝试运行的目的地。如果您在模拟器中运行,则不需要对您的项目进行签名。
If you run in a device, you need to attach the actual device. It must notsay "generic device".
如果在设备中运行,则需要附加实际设备。它不能说“通用设备”。
回答by Grzegorz Pawlik
In my case this error disappeared when I changed the "Bundle Identifier" to something less generic (e.g. adding some random numbers at the end)
在我的情况下,当我将“捆绑标识符”更改为不那么通用的东西时,这个错误就消失了(例如,在最后添加一些随机数)
回答by Sharkey5_06
Change the bundle identifier to something more unique.
将包标识符更改为更独特的内容。
If you are following a tutorial and just put a generic identifier then adding a few numbers to the end will likely solve your issues.
如果您正在学习教程并只放置一个通用标识符,那么在末尾添加一些数字可能会解决您的问题。
i.e. if you had HelloWorldchange it to HelloWorld12345
即如果你有HelloWorld将其更改为HelloWorld12345
回答by noobular
After struggling for an hour, I just unchecked the "Automatically manage signing" and went back to the old school way of specifying my profiles. Probably not the best thing to do but works.
挣扎了一个小时后,我只是取消选中“自动管理签名”并回到指定我的个人资料的老派方式。可能不是最好的做法,但有效。
回答by Calendar Calendar
Profiling your Phone takes a few minutes. . . watch the status bar on the top to be sure that your phone is being profiled on the top.
分析您的手机需要几分钟时间。. . 观察顶部的状态栏以确保您的手机正在顶部配置。
Next, be sure you choose YOUR PHONE as the target, not iPhone 7 or iPhone 8... your exact phone. This is done by choosing: Product > Destination > (pick your phone)
接下来,请确保选择您的手机作为目标,而不是 iPhone 7 或 iPhone 8……您的确切手机。这是通过选择:产品 > 目的地 >(选择您的手机)来完成的
Your phone will only show up after it's been plugged in, turned on, and left running for a few minutes while Xcode creates a profile.
您的手机只有在插入、打开并在 Xcode 创建配置文件期间运行几分钟后才会显示。
回答by iPhoneDeveloper
Check these things.
检查这些东西。
1.A device is connected to your system or not.
1.设备是否连接到您的系统。
2.Deployment target in xcode. (General->Deployment info->Deployment target) It should match with the ios version of your device.
2.xcode 中的部署目标。(General->Deployment info->Deployment target) 它应该与您设备的 ios 版本匹配。
3.Change your bundle identifier. Follow general rules of setting a unique bundle identifier for yourproject while running in device. See this what is correct format of bundle identifier in iOS?
3.更改您的捆绑标识符。在设备中运行时,遵循为您的项目设置唯一包标识符的一般规则。看看这个iOS 中包标识符的正确格式是什么?
Also be careful with the number of bundle identifiers you set in the project. Please remember all bundle identifiers or note it down somewhere. Since you are using a free account you have limited access to the number of bundle id's.
还要注意您在项目中设置的包标识符的数量。请记住所有捆绑包标识符或将其记在某处。由于您使用的是免费帐户,因此您对捆绑 ID 数量的访问受到限制。
You should also disable push notifications in the "Capabilities" section of the project. Try changing "App groups" as well in the format of group.com.someString.
您还应该在项目的“功能”部分禁用推送通知。尝试以 group.com.someString 格式更改“应用程序组”。
These things helped me run my app in real device without any errors.
这些东西帮助我在真实设备上运行我的应用程序而没有任何错误。
回答by Koray Yavic
回答by Rashwan L
I have had this error multiple times and what solves it for me is the following:
我多次遇到此错误,为我解决的方法如下:
- In the list with the view of all certificates, right click on each row and move each certificate to trash (go to Xcode > Preferences > Choose account > Click View Details)
- Go to member center download the right certificates again and click on them so
- Restart Xcode
- Go to build settings and set the right Code signing for debug/release - you should be able to see an option on the row that says "Identities from profile..."
- 在所有证书视图的列表中,右键单击每一行并将每个证书移动到垃圾箱(转到 Xcode > 首选项 > 选择帐户 > 单击查看详细信息)
- 再次到会员中心下载正确的证书并点击它们
- 重启Xcode
- 转到构建设置并为调试/发布设置正确的代码签名 - 您应该能够在行上看到一个选项,上面写着“来自配置文件的身份...”
If this doesn't work then you should consider revoking your certificate and then create a new one and the do the steps above again.
如果这不起作用,那么您应该考虑撤销您的证书,然后创建一个新证书并再次执行上述步骤。
回答by Nitin Bagoriya
The issue behind this error is Unavailability of App ID with given Bundle Identifier
此错误背后的问题是具有给定捆绑标识符的 App ID 不可用
Solution: Change Bundle Identifiersimple :)
解决方案:更改捆绑标识符简单:)
回答by Eran Or
After some time with the same disturbing error and after I write a unique Bundle Identifier and it didn't help, I searched the web and found herethat my error was that I selected a virtual device and not an real device. The solution was:
一段时间后,以相同的干扰错误后,我写了独特的捆绑标识符,它并没有帮助,我在网上搜索,发现这里是我的错误是我选择的虚拟设备,而不是一个真正的设备。解决方案是:
1.I plugged my iPhone
1.我插入了我的 iPhone
2.I clicked on the button - set the active scheme. and there it was on the top - device iPhone. the error has gone.
2.我点击了按钮 - 设置活动方案。它位于顶部 - 设备 iPhone。错误消失了。