Xcode失败并带有“代码签名”功能。错误 [英] Xcode fails with "Code Signing" Error
问题描述
(以帮助搜索)
- Xcode'CodeSign错误:需要代码签名'
- Xcode:iPhone应用程序代码错误
- / usr / bin / codesign失败,退出代码为1
- Jenkins因代码签名错误而失败
- 命令行构建失败并且找不到配置文件
- 存档Xcode项目配置错误失败
- Xcode中缺少签名证书
- Xcode 'CodeSign error: code signing is required'
- Xcode: iPhone app codesign error
- /usr/bin/codesign failed with exit code 1
- Jenkins fails with Code Sign error
- Command-line build fails with "provisioning profiles not found"
- Archiving Xcode project fails with provisioning error
- Missing signing certificates in Xcode
该问题通过以下几种方式表现出来:
The issue manifests it's self in one of several ways:
- 在设备上运行您的应用会导致引用代码签名或过期签名证书的错误
-
从命令行构建(或使用连续集成系统,例如 Jenkins )失败并出现类似这样的错误:
- Running your app on a device results in an error referencing "code signing" or "expired signing certificates"
Building from the command line (or using a continuos integration system, such as Jenkins) fails with a error similar to this:
Check dependencies
Code Sign error: No unexpired provisioning profiles found that contain any of the keychain's signing certificates
归档应用程序运行或构建正常工作的代码签名或过期签名证书失败。
Archiving an app fails with "code signing" or "expired signing certificates" where a run or build work correctly.
通常项目可能有几种配置,有时只有一个子集会失败。删除和重新生成配置文件无效。
Often the project may have several configurations and sometimes only a subset will fail. Deleting and regenerating provisioning profiles has no effect.
推荐答案
CODE_SIGN_IDENTITY验证脚本。
通常在使用版本控制的设置中项目.pbxproj
可以以这样的方式合并,即可以插入两个 CODE_SIGN_IDENTITY
行。这似乎在某些情况下(如命令行构建或存档)导致Xcode问题。
CODE_SIGN_IDENTITY verification script.
Often in set ups that use version control the project.pbxproj
can be merged in such a way that two CODE_SIGN_IDENTITY
lines can be inserted. This seems to cause Xcode problems under certain situations (like command-line builds or archiving).
在_ code> project.pbxproj 文件中,tell-tail符号与此类似的行(右键单击项目并选择显示包裹内容......)
A tell-tail sign is lines similar to this in the project.pbxproj
file (right-click on the project and select "Show Package Contents…")
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "iPhone Distribution";
删除其中一行将允许您在构建设置中选择正确的值,项目应该再次正确构建。
Deleting one of these lines will let you select the correct value in Build Settings and the project should once again build correctly.
我创建了简单的脚本来帮助诊断这个问题,可以在这里找到: https://github.com/rjstelling/Xcode-Project-Validate
I have created simple script to help diagnose this issue it can be found here: https://github.com/rjstelling/Xcode-Project-Validate
这篇关于Xcode失败并带有“代码签名”功能。错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!