CodeSign 错误:SDK“iOS 6.0”中的产品类型“应用程序”需要代码签名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/13582401/
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
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.0'
提问by crazy2431
I have dowloaded a project name called Plot_Gallery _ios which is mainly runs for plotting of graph.This was downloaded from core_plot,the main target project is Plot_Gallery_IOS and also it has sub project file called CorePlot-CocoaTouch.xcodeProj whic contain all library files which is mainly used of running of this project.
我下载了一个名为 Plot_Gallery _ios 的项目名称,它主要用于绘制图形。这是从 core_plot 下载的,主要目标项目是 Plot_Gallery_IOS,它还有一个名为 CorePlot-CocoaTouch.xcodeProj 的子项目文件,其中包含所有库文件主要用于本项目的运行。
Problem what i am facing is when i try to load this app in my ipad after compiling it gives one error i.e
我面临的问题是,当我在编译后尝试在 ipad 中加载此应用程序时出现一个错误,即
CodeSign error: code signing is required for product type 'Application' in SDK 'iOS 6.0'
CodeSign 错误:SDK“iOS 6.0”中的产品类型“应用程序”需要代码签名
Iam tryin to fix this problem from long time i am not able to..i tried going to build settings and changing code signing identityto Dont code signand also by selecting debugas Ios SDKi am tryign all possible ways to fix it but i am not able to load this app into my ipad.
荫试着修复从很长一段时间这个问题我不能够to..i试图去构建设置和更改代码签名身份到不要代码标志,并通过选择调试作为内部监督办公室SDK我是tryign所有可能的方式来解决它,但我我无法将此应用加载到我的 iPad 中。
i also tried selecting Ios SDK as iphoneDeveloperbut i get linker errorsso wats the issue??Is it bcoz it contains 2 target project where Plot_Gallery_IOS is main and in sub there is CorePot_cocoatouch.xcodeProject and rest all other files..
我也尝试选择 Ios SDK 作为iphoneDeveloper,但我收到链接器错误,所以问题是什么??它是否包含 2 个目标项目,其中 Plot_Gallery_IOS 是主要项目,在子项目中有 CorePot_cocoatouch.xcodeProject 并保留所有其他文件..
So can anyone plz tel me how to solve this issue.i am stuck up with this issue from long time.
所以任何人都可以告诉我如何解决这个问题。我长期以来一直在解决这个问题。
回答by Roger Fernandez Guri
Hey I manage to fix it changing the codesigning values in the build settings. I attach an image so you can see it:
嘿我设法修复它更改构建设置中的代码签名值。我附上一张图片,以便您可以看到:
I hope that will help you! Let me know!
我希望这会帮助你!让我知道!
回答by Yuval.M
- Go to this folder:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
. - You need to copy this file:
SDKSettings.plist
and paste it in your desktop. - Open the file you just copied with Xcode. In
DefaultProperties
you'll find the following string:CODE_SIGNING_REQUIRED
. - You need to change it's value from 'YES' to 'NO'.
- Save it, move it back to the original folder (replace it with the original file) and there you go.
- 转到此文件夹:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
。 - 您需要复制此文件:
SDKSettings.plist
并将其粘贴到桌面上。 - 打开你刚刚用 Xcode 复制的文件。在
DefaultProperties
你会发现下面的字符串:CODE_SIGNING_REQUIRED
。 - 您需要将其值从“是”更改为“否”。
- 保存它,将其移回原始文件夹(用原始文件替换),然后就可以了。
回答by malajisi
For Xcode5, Maybe Provisioning Profile section you choose the wrong item of "Any iOS SDK", just change to your own profile instead of your download one.
对于 Xcode5,Maybe Provisioning Profile 部分您选择了错误的“Any iOS SDK”项,只需更改为您自己的配置文件而不是您下载的配置文件。
回答by Andrea Leganza
To release/adhoc the app the solution in my case was to set to do not sign all the Code Signing Identity fields, and do the same for the provisionings profiles.
为了发布/临时应用程序,我的解决方案是设置为不对所有代码签名身份字段进行签名,并对配置文件执行相同操作。
After that i set the Release->Any iOS SDK to the right provisioning profile, Xcode automatically set the Code Signing Identity-> Any iOS SDK to the proper Identity and i do the normal Archive-> publish procedure.
之后,我将 Release->Any iOS SDK 设置为正确的配置文件,Xcode 自动将 Code Signing Identity-> Any iOS SDK 设置为正确的 Identity,然后我执行正常的 Archive-> 发布过程。
回答by JCGM
To solve then problem, You must register Don′t Code Sign, compile your code, and then place the corresponding profile.
要解决这个问题,您必须注册Don't Code Sign,编译您的代码,然后放置相应的配置文件。
Please see the Assigning Provisioning Profiles to Build Configurationssection from this page on Apple's developer site:
请参阅Apple 开发人员网站上此页面的“将供应配置文件分配给构建配置”部分:
https://developer.apple.com/legacy/library/technotes/tn2250/_index.html
https://developer.apple.com/legacy/library/technotes/tn2250/_index.html