iOS8动态框架 - > CodeSign错误:SDK'iOS 8.3'中的产品类型'Framework'需要代码签名 [英] iOS8 Dynamic Frameworks -> CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

查看:365
本文介绍了iOS8动态框架 - > CodeSign错误:SDK'iOS 8.3'中的产品类型'Framework'需要代码签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iOS8动态框架,我自己构建并链接到我的iOS应用程序中。它在模拟器和设备上运行良好,但在尝试为其存档Release版本时,我不断收到此错误:

I am using the iOS8 Dynamic Frameworks that I build myself and link within my iOS app. It was working fine in the simulator and on device, but when trying to archive a Release build for it, I keep getting this error:


代码签名错误:找不到匹配的配置文件:任何有效的配置文件都不允许指定的权利:com.apple.developer.ubiquity-kvstore-identifier,keychain-access-groups,com.apple.developer.icloud-container-identifiers ,com.apple.developer.icloud-services,com.apple.security.application-groups,com.apple.developer.ubiquity-container-identifiers。
CodeSign错误:SDK'iOS 8.3'中的产品类型'Framework'需要代码签名

Code Sign error: No matching provisioning profiles found: None of the valid provisioning profiles allowed the specified entitlements: com.apple.developer.ubiquity-kvstore-identifier, keychain-access-groups, com.apple.developer.icloud-container-identifiers, com.apple.developer.icloud-services, com.apple.security.application-groups, com.apple.developer.ubiquity-container-identifiers. CodeSign error: code signing is required for product type 'Framework' in SDK 'iOS 8.3'

在应用目标中 - >构建阶段 - >嵌入框架 - >框架链接在那里,并选中复制代码签名复选框。

Within the app target -> Build Phases -> Embed Frameworks -> the framework is linked there, and "Code Sign on Copy" checkbox is checked.

在框架目标 - >构建设置 - >我已将Provisioning Profile设置为Automatic,对于Code Sign Identity,在Release下,我正在使用iOS Distribution

Within the framework target -> Build Settings -> I have set Provisioning Profile to "Automatic", and for Code Sign Identity, under Release, I am using "iOS Distribution"

我有3个不同的应用程序目标,需要构建此框架。

I have 3 different app targets that need to build off this Framework.

我很困惑:


  • 框架需要它吗?在开发人员中心注册的自己的AppID?

  • does the framework need it's own AppID registered in the Developer Center?

框架是否需要自己的配置文件?

does the framework need it's own Provisioning Profile?

框架可以使用iOS应用目标中相同的Entitlements文件吗?

can the framework use the same Entitlements file from the iOS app target?

谢谢。

推荐答案

我遇到了同样的问题但修好了:

I had the same problem but fixed it by:

在目标设置的常规选项卡中将团队设置为无。

Setting the team to None in the General tab of the target settings.

更改此值似乎还会将构建设置中的代码签名参数重置为iOS Developer以进行调试和发布。如果没有,那么自己更改这些参数。

Changing this value seems to also reset the code signing params in the build settings, to 'iOS Developer' for both debug and release. If it doesn't then change these params yourself.

我现在可以构建我的框架而没有错误。

I can now build my framework with no errors.

可以通过在终端输入 codesign --display --verbose = 4 FRAMEWORK_PATH 来检查新构建的框架。

The newly built framework can be checked for signing by entering codesign --display --verbose=4 FRAMEWORK_PATH into the terminal.

此工具应该返回:代码对象根本没有签名

这篇关于iOS8动态框架 - > CodeSign错误:SDK'iOS 8.3'中的产品类型'Framework'需要代码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆