ios Xcode 有冲突的配置设置
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/42885122/
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
Xcode has conflicting provisioning settings
提问by Richard
I have an Ionic 2 app, which builds and is testable in Xcode 8.2.1
Simulator environment, e.g. iPhone7
(Build Successful
).
我有一个 Ionic 2 应用程序,它在Xcode 8.2.1
模拟器环境中构建并可以测试,例如iPhone7
( Build Successful
)。
When I try Archive
the app to create an ipa
file to set on a device, I follow theseinstructions. But Product -> Archive
is greyed out. So I change the active scheme to Generic iOS Device
.
当我尝试Archive
应用程序创建ipa
要在设备上设置的文件时,我会按照这些说明进行操作。但是Product -> Archive
是灰色的。所以我将活动方案更改为Generic iOS Device
.
But then when I click Product -> Archive
, I get Build Failed
.
但是当我点击时Product -> Archive
,我得到Build Failed
.
theWhoZoo has conflicting provisioning settings. theWhoZoo is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor. Code signing is required for product type 'Application' in SDK 'iOS 10.2'
theWhoZoo 具有冲突的配置设置。theWhoZoo 为开发自动签名,但手动指定了冲突的代码签名身份 iPhone Distribution。在构建设置编辑器中将代码签名标识值设置为“iPhone Developer”,或者在项目编辑器中切换到手动签名。SDK“iOS 10.2”中的产品类型“应用程序”需要代码签名
If anyone could advise how I can fix this to build an Archive, I would appreciate it.
如果有人可以建议我如何解决此问题以构建档案,我将不胜感激。
回答by Mohd Asim
This worked perfectly for me. Give a try :)
这对我来说非常有效。试一下 :)
Step 1:
第1步:
Select the Project Target-- > Build Settings. Search PROVISIONING_PROFILE and delete whatever nonsense is there.
选择项目目标--> 构建设置。搜索 PROVISIONING_PROFILE 并删除那里的任何废话。
Step 2:
第2步:
Uncheck "Automatically manage signing", then check it again and reselect the Team. Xcode then fix whatever was causing the issue on its own.
取消选中“自动管理签名”,然后再次选中并重新选择团队。然后 Xcode 自行修复导致问题的任何内容。
回答by Thomas Degroot
The problem is in Code Signing Identity. This is a new problem that showed up on the latest release of Xcode. Go to Code Signing Identity, then add other and type in "iPhone Developer" as shown in the error message and save then this will display.
问题在于代码签名身份。这是最新版本的 Xcode 中出现的一个新问题。转到代码签名标识,然后添加其他并输入“iPhone Developer”,如错误消息所示并保存,然后将显示。
If this does not work show me your General signing. and your Code Signing Identity from both your Project and your Targets
如果这不起作用,请向我展示您的一般签名。以及来自项目和目标的代码签名身份
回答by Ahmed Samir
The problem is in Code Signing Identity. This is a new problem that showed up on the latest release of Xcode. Go to Code Signing Identity, make all IOS Developer rather that IOS distribution.
问题在于代码签名身份。这是最新版本的 Xcode 中出现的一个新问题。转到代码签名标识,制作所有 IOS 开发人员而不是 IOS 发行版。
回答by Josh Wolff
UPDATEJust figured out the real issue [assuming that your app has the correct provisioning profiles, but a target for your app does not]: Navigate to your target and change the provisioning profile there. See below:
更新刚刚找出真正的问题[假设您的应用程序具有正确的配置文件,但您的应用程序的目标没有]:导航到您的目标并在那里更改配置文件。见下文:
I got this error when I added a target to enable rich push notifications. The project/workspace, "Spontit" did not have this error but the target "RichNotification" did.
添加目标以启用丰富的推送通知时,我收到此错误。项目/工作区“Spontit”没有这个错误,但目标“RichNotification”有。
I tried several things, and the last thing I did, that seemed to be responsible for it finally working, was:
我尝试了几件事,我做的最后一件事似乎是它最终工作的原因,是:
Un-add and re-add the embedded binary for the target "RichNotification" in the "General" tab of the project, "Spontit".
Another thing to check is to make sure that it is added as a "Target Dependency" in the "Build Phases" tab.
- For this particular problem, make sure to clean your project (Cmd Shift K) before building it, every time. Otherwise, you might fix it and try to build it and think it's not working, but really it's using the old settings- so clean it first.
回答by cathyin
If you have error message like this: [target name] is automatically signed, but provisioning profile xxxxx-xxxx-xxxx-xxx-xxx has been manually specified. Set the provisioning profile value to "Automatic" in the build settings editor, or switch to manual signing in the project editor.
如果您有这样的错误消息:[目标名称] 已自动签名,但已手动指定配置文件 xxxxx-xxxx-xxxx-xxx-xxx。在构建设置编辑器中将配置文件值设置为“自动”,或在项目编辑器中切换到手动签名。
You can fix like this: 1. Check Automatically code sign in 2. Uncheck Automatically code sign in, then check it again and reselect the Team. Xcode then fixed whatever was causing the issue on its own 3. If still not work, find project.pbxproj, search the profile, and just delete that line, then save it.
您可以这样修复: 1. 选中自动代码登录 2. 取消选中自动代码登录,然后再次选中并重新选择团队。然后 Xcode 自行修复导致问题的任何内容 3. 如果仍然无法正常工作,请找到 project.pbxproj,搜索配置文件,然后删除该行,然后保存它。
This work for me!
这对我有用!
回答by BharathRao
回答by Jvil
HERE IS THE FIX
这是修复
FOLLOW THESE STEPS:open your project in xcode, in my case I used xcode 9.
按照以下步骤操作:在 xcode 中打开您的项目,在我的情况下我使用 xcode 9。
INSIDE THE GENERAL TAB DO THE FOLLOWING
在常规选项卡中执行以下操作
UNCHECK THE FOLLOWING OPTION:Automatically manage signing
取消选中以下选项:自动管理签名
THEN SIGN YOUR DEBUG PROFILEprovisioning profile should be your development profile from the dropdown Team : will be populated because of the above provisioning profile Sigining Certificate: will be populated.
然后签署您的调试配置文件配置文件应该是您的开发配置文件从下拉团队:将填充因为上述配置文件签名证书:将被填充。
THEN SIGN YOUR RELEASE PROFILEprovisioning profile should be your release profile from the dropdown Team : will be populated because of the above provisioning profile Sigining Certificate: will be populated.
然后签署您的发布配置文件配置文件应该是您从下拉团队中发布的配置文件:将填充因为上述配置文件签名证书:将被填充。
That is all, clean and archive your project.
这就是全部,清理并归档您的项目。