XCode 8.2.1 中的代码签名错误 [英] Code Signing error in XCode 8.2.1

查看:50
本文介绍了XCode 8.2.1 中的代码签名错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在我的 Mac 上构建的应用程序(运行 El Capitan),但是当我将应用程序项目文件夹复制到另一台 Mac(运行 Sierra,如果这可能是问题)并运行该项目时,我收到代码签名错误:

I have an app that builds on my Mac (running El Capitan) but when I copy the app project folder onto another Mac (running Sierra if that may be the problem) and run the project I get the code signing error:

CodeSign /Users/.../Library/Developer/Xcode/DerivedData/appname-fgarszmikfuloefrynwpohxkvgav/Build/Products/Debug-iphonesimulator/appname.app
    cd "/Users/... app path"
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "-"

    /usr/bin/codesign --force --sign - --timestamp=none /Users/.../Library/Developer/Xcode/DerivedData/appname-fgarszmikfuloefrynwpohxkvgav/Build/Products/Debug-iphonesimulator/appname.app

/Users/.../Library/Developer/Xcode/DerivedData/appname-fgarszmikfuloefrynwpohxkvgav/Build/Products/Debug-iphonesimulator/appname.app: resource fork, Finder information, or similar detritus not allowed
Command /usr/bin/codesign failed with exit code 1

新证书和配置文件等,但一切都应该没问题.

New certs and provisioning profiles etc but all that should be fine.

遵循我可以在这里找到的所有建议(特别是 macOS Sierra Xcode 8 中的代码签名错误:不允许资源叉、Finder 信息或类似的碎屑),已清理,alt 已清理.自动管理签名无法解决此问题.

Followed every suggestion I can find on here (specifically Code Sign Error in macOS Sierra Xcode 8 : resource fork, Finder information, or similar detritus not allowed), cleaned, alt-cleaned. Auto manage signing doesn't fix it.

我已经支付了开发者帐户.

I have paid developer account.

谁能提出可能导致问题的原因?

Can anyone suggest what might be causing the problem?

推荐答案

此错误似乎是由项目中文件的扩展属性引起的.

It seems like this error is caused by extended attributes on files in your project.

您可以通过运行以下命令找出导致此故障的文件:xattr -lr <path_to_app_bundle>

You can find out which files are causing this failure by running the following command: xattr -lr <path_to_app_bundle>

您可以使用以下命令删除扩展属性:xattr -cr

You can remove the extended attributes using this command: xattr -cr <path_to_app_bundle>

更多信息此处.

这篇关于XCode 8.2.1 中的代码签名错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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