简体   繁体   English

代码签名.framework时出错

[英]Error when code signing .framework

I have used CocoaPods to install the RNCryptor framework. 我使用CocoaPods来安装RNCryptor框架。 Which has worked perfectly on my application, and when archiving the application manually through xcode works perfectly. 这在我的应用程序中完美运行,并且通过xcode手动归档应用程序时效果很好。

But when I try archive using terminal with the command: 但是当我使用命令终端尝试存档时:

xcodebuild -workspace "$APP.xcworkspace" -scheme "$APP" archive

I get the error: 我收到错误:

/usr/bin/codesign --force --sign ... /RNCryptor.framework

no identity found
Command /bin/sh failed with exit code 1

Sounds like you need to set the codesigning identity in your project which incorporates Pods. 听起来你需要在项目中设置代码签名身份,其中包含Pods。

Go to your project settings and look in the Code Signing section and see if it's set with a name like " iPhone Distribution: Maximillian " or " iPhone Development: Maximillian ". 转到您的项目设置并查看代码签名部分,看看它是否设置了“ iPhone Distribution: Maximillian ”或“ iPhone Development: Maximillian ”之类的名称。

In my case, the issue was not related to the framework. 就我而言,问题与框架无关。 The updated version of the provisioning profile required a different signing identity; 配置文件的更新版本需要不同的签名标识; when I installed the new certificate, the issue was resolved. 当我安装新证书时,问题已解决。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM