SDK“iOS 10.0”中的产品类型“应用程序”需要代码签名 - StickerPackExtension 需要开发团队错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/37806538/
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
Code signing is required for product type 'Application' in SDK 'iOS 10.0' - StickerPackExtension requires a development team error
提问by Rajesh
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 是自动供应的,但已手动指定供应配置文件通配符。在构建设置编辑器中将供应配置文件值设置为“自动”,或在目标编辑器中切换到手动供应。SDK“iOS 10.0”中的产品类型“应用程序”需要代码签名
I am also unable to choose a particular profile.
我也无法选择特定的配置文件。
How to resolve this issue?
如何解决这个问题?
回答by Sam B
Holy molly, I 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".
Now do Xcode → Product → Clean. Close your project in Xcode and reopen it again.
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.
如果您在存档时遇到此错误,请继续阅读。
转到您的应用程序并单击常规选项卡。在签名部分下,取消选中“自动管理签名”。一旦您这样做,您将获得如下所示的红色错误状态。
现在是棘手的部分。您需要在项目下的两个目标中取消选中“自动管理签名”。这一步非常重要。
现在转到每个目标的“构建设置”选项卡下,并在代码签名标识下设置“iOS 开发人员”。对您的“项目”执行相同的步骤。
现在做 Xcode → Product → Clean。在 Xcode 中关闭您的项目并重新打开它。
在此之后,转到每个目标的常规选项卡并选中“自动管理签名”,然后在团队下拉菜单下选择您的开发者帐户
再次对您的项目进行存档,一切都会正常进行。
Really, Apple? Was this supposed to make our lives easier?
真的吗,苹果?这应该让我们的生活更轻松吗?
回答by Rajesh
Great, now we can choose the profile for Debug and Release separately in the general tab itself as illustrated in the image below.
太好了,现在我们可以在常规选项卡本身中分别选择调试和发布的配置文件,如下图所示。
Also when you click on Automatically manage signing
it does all process that are created by Fix issue
in previous Xcode versions.
此外,当您单击Automatically manage signing
它时,会执行Fix issue
在以前的 Xcode 版本中创建的所有进程。
回答by jjxtra
Disabling automatic and then re-enabling has solved this for me in Xcode 8 GM seed. This can be done in the project settings, info tab for each target that needs to be signed.
在 Xcode 8 GM 种子中禁用自动然后重新启用已经为我解决了这个问题。这可以在项目设置、需要签名的每个目标的信息选项卡中完成。
回答by Sabba Keynejad
I hate to say it. I just quit Xcode and opened it again. Simple and effective :)
我讨厌说出来。我刚刚退出Xcode并再次打开它。简单有效:)
回答by Mihail Salari
For resovle this issue:
解决这个问题:
- Go to Xcode/Preferences/Accounts
- Click on your apple id account;
- Click -
"View Details"
(is open a new window with "signing identities" and "provisioning profiles"; - Delete all certificates from
"Provisioning profiles"
, empty trash; - Delete your Apple-ID account;
- Log in again with your apple id and build app!
- 转到 Xcode/首选项/帐户
- 点击你的apple id账号;
- 单击 -
"View Details"
(打开一个带有“签名身份”和“配置文件”的新窗口; - 删除所有证书
"Provisioning profiles"
,清空垃圾箱; - 删除您的 Apple-ID 帐户;
- 使用您的 Apple ID 再次登录并构建应用程序!
Good luck!
祝你好运!
回答by NukeouT
This is what I would call a classically Apple Xcode UX design bug.
这就是我所说的经典 Apple Xcode UX 设计错误。
The error said there is a bunch of stuff YOU DID WRONG LOCALLY.
错误说有一堆你在本地做错的东西。
The error actually meant "we have a new agreement you did not accept online".
该错误实际上意味着“我们有一个您没有在线接受的新协议”。
After checking and unchecking the Automatic Signing button I got this agreement error to display:
选中并取消选中“自动签名”按钮后,我显示此协议错误:
Signing into the developer portal I was able to see a banner for the agreement update notice:
登录开发人员门户后,我能够看到协议更新通知的横幅:
.
Restarting Xcode 8 then cleared that error and only forced me to reselect the certificate I already had on my machine and tied to the project.
. 重新启动 Xcode 8 然后清除了该错误,并只强迫我重新选择我机器上已有的证书并与项目相关联。
This could have been handled in a less confusing implementation, but this is how I fixed it. I am putting it here because it's way different than the steps everyone else gave.
这本来可以在一个不太容易混淆的实现中处理,但这就是我修复它的方式。我把它放在这里是因为它与其他人给出的步骤截然不同。
Oh and yeah, having the pre-latest iOS 10 device and latest Xcode (I was on 7.3.1 or something) also threw errors until I updated.
哦,是的,在我更新之前,拥有最新的 iOS 10 设备和最新的 Xcode(我使用的是 7.3.1 或其他版本)也会引发错误。
回答by Usman Awan
This is how it worked for me:
这对我来说是这样的:
- Kill Xcode and launch again
- Open project again
- Clean Project
- Go to project settings > general > uncheck 'automatically managed profiles' and than 'check' again it will prompt for enable.
- Now try archiving the source code
- 杀死 Xcode 并再次启动
- 再次打开项目
- 清洁工程
- 转到项目设置 > 常规 > 取消选中“自动管理的配置文件”,然后再次“选中”它会提示启用。
- 现在尝试归档源代码
P.S Killing Xcode and launch again is the best thing to do if facing any random issue
PS如果遇到任何随机问题,最好杀死Xcode并再次启动
回答by Jose Galvez
回答by Johnny
Steps:
脚步:
- Under General→ Signing
- Uncheck: Automatically manage signing
- Select Import Provisioning
- 在一般→签名下
- 取消选中:自动管理签名
- 选择导入配置
回答by MastaBaba
I only needed to uncheck 'Automatically manage signing', check it again, and rebuild.
我只需要取消选中“自动管理签名”,再次检查并重建。