xcode SDK“iOS 8.4”不允许临时代码签名
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31625320/
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
ad hoc code signing not allowed with SDK 'iOS 8.4'
提问by Khaled Hayek
I am trying to run my IOS app on my iphone, I have an apple developer account and I did all the steps to create certificate, When I am trying to run it I have this error message:
我正在尝试在我的 iphone 上运行我的 IOS 应用程序,我有一个苹果开发者帐户,我完成了创建证书的所有步骤,当我尝试运行它时,我收到以下错误消息:
Code Sign error: ad hoc code signing not allowed with SDK 'iOS 8.4'
CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.4'
代码签名错误:SDK“iOS 8.4”不允许临时代码签名
CodeSign 错误:SDK“iOS 8.4”中的产品类型“Framework”需要代码签名
Any solution
任何解决方案
采纳答案by Khaled Hayek
I found the problem, Actually it was from the library, I added it to cocopods and worked well (y)
我发现了问题,实际上它来自图书馆,我将它添加到 cocopods 并且运行良好(y)
回答by Mauro Nonnis
From XCode select your project file in the navigation area, then go in the Build Settings tab.
在 XCode 的导航区域中选择您的项目文件,然后进入 Build Settings 选项卡。
Search the 'Code signing' section and check if you have properly set the 'Code Sign Identity' and 'Provisioning profile' properties. In the first one you should read the name identity of the ios program owner, in the second the name of the provisioning profile you create. If you aren't able to select any provisioning profile, copy the one you create in this path:
搜索“代码签名”部分并检查您是否正确设置了“代码签名标识”和“配置文件”属性。在第一个中,您应该阅读 ios 程序所有者的名称标识,在第二个中,您应该阅读您创建的配置文件的名称。如果您无法选择任何配置文件,请复制您在此路径中创建的配置文件:
~/Library/MobileDevice/Provisioning\ Profiles/
~/Library/MobileDevice/Provisioning\ Profiles/
and restart XCode. This is an example of right configuration:
并重新启动 XCode。这是正确配置的示例:
回答by Nishant Gupta
Check your provision profile is selected in code singing setting if you selected then clean your project and create archive again.
检查您的配置文件是否在代码唱歌设置中选择,然后清理您的项目并再次创建存档。
I think it's helping you
我认为这对你有帮助
回答by Edison
With SDK 'watchOS 3.0' this error occurs because you actually DO need to code sign with SDK 'watchOS 3.0' when you're using Entitlements.
使用 SDK 'watchOS 3.0' 会发生此错误,因为您在使用权利时实际上确实需要使用 SDK 'watchOS 3.0' 进行代码签名。
In each targets' General tab in the Signing section you need to enable automatic code signing.
在签名部分的每个目标的常规选项卡中,您需要启用自动代码签名。