精通
英语
和
开源
,
擅长
开发
与
培训
,
胸怀四海
第一信赖
锐英源精品开源,禁止转载和任何形式的非法内容使用,违者必究
Xcode下项目签名可以自动也可以手动,签名和证书与Profile不对应时,会出莫名其妙的错误,如果从这个错误出发去查,根本没结果,比如我遇到过说缺少device id,如果按这个提示去想,就解决不了。最后还是对应搞好,才解决。
I am facing the below issue and am unable to build the application.我面临以下问题,无法构建应用程序。
XXX has conflicting provisioning settings. XXX is automatically provisioned, but provisioning profile WildCard has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual provisioning in the target editor. Code signing is required for product type 'Application' in SDK 'iOS 10.0'
XXX具有冲突的配置设置。XXX已自动配置,但已手动指定配置文件WildCard。在构建设置编辑器中将配置配置文件值设置为“自动”,或切换到目标编辑器中的手动配置。SDK“iOS 10.0”中的产品类型“应用”需要代码签名
I am also unable to choose a particular profile.我也无法选择特定的个人资料。
had to do all this in order for it to work. A picture is worth a thousand words.我必须做这一切才能使它发挥作用。一张图片胜过千言万语。
If you get this error while archiving then continue reading.如果在归档时出现此错误,请继续阅读。
Go to your app and click on the general tab. Under the signing section, uncheck "Automatically manage signing". As soon as you do that you will get a status of red error as shown below.转到您的应用,然后单击常规选项卡。在签名部分下,取消选中“自动管理签名”。一旦这样做,您将获得红色错误状态,如下所示。
Now here's the tricky part. You need to uncheck "Automatically manage Signing" in both the targets under your project. This step is very important.现在这里是棘手的部分。您需要在项目下的两个目标中取消选中“自动管理签名”。这一步非常重要。
Now go under "build settings" tab of each of those targets and set "iOS Developer" under code signing identity. Do the same steps for your "PROJECT".现在进入每个目标的“构建设置”选项卡,并在代码签名身份下设置“iOS Developer”。为“PROJECT”执行相同的步骤。
Now do Xcode → Product → Clean. Close your project in Xcode and reopen it again.现在做Xcode→产品→清除。在Xcode中关闭您的项目并重新打开它。
After this go to the general tab of each of your targets and check "Automatically manage signing" and under team drop down select your developer account
在此之后,转到每个目标的常规标签,然后选中“自动管理签名”,然后在团队下拉列表中选择您的开发者帐户
Do an archive of your project again and everything should work.再次存档您的项目,一切都应该有效。
Really, Apple? Was this supposed to make our lives easier?
真的,Apple?这应该让我们的生活更轻松吗?
I only had to uncheck and recheck the "Automatically manage signing". It then made me choose my team and had a popup confirming it was reseting some settings. Then it worked!我只需取消选中并重新检查“自动管理签名”。然后它让我选择我的团队并弹出一个确认它正在重置某些设置的弹出窗口。然后它工作了!
Don't forget to 'Close your project in Xcode and reopen it again'. This is important, at least to me不要忘记'在Xcode中关闭您的项目并重新打开它'。这是很重要的,至少对我来说
For resovle this issue:
Good luck!
为了解决这个问题:
祝你好运!