本文介绍了Codeign返回未知错误-1 = ffffffffffffffff的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试对iOS应用程序进行代码签名,
这些是我遵循的步骤

I tried to code sign an iOS application,These are the steps that i followed

    security create-keychain -p password ${KEYCHAIN}
    security set-keychain-settings -u -t 300 ${KEYCHAIN}
    security list-keychains -d user -s login.keychain ${KEYCHAIN}
    security import "$1" -k ${KEYCHAIN} -A -P "${PASSPHRASE}" -A >/dev/null
    security unlock-keychain -p password ${KEYCHAIN}

    /usr/bin/codesign -f -s $IDENTITY --keychain $KEYCHAIN --entitlements $ENTITLEMENTS Payload/Test.app

这让我回复了Codeign通过ssh返回的未知错误-1 = ffffffffffffffff。

This returned me Codesign returned unknown error -1=ffffffffffffffff via ssh.

如果我直接执行机器中的代码签名命令,它已成功签名。

If i directly execute the code sign command in the machine, it's successfully signing.

问题仅出在Mac OS Sierra。

The issue is only in Mac OS Sierra.

推荐答案

前一段时间遇到同样的问题,添加

Had the same problem a while ago, adding

security set-key-partition-list -S apple-tool :, apple: ,codesign:-s -k密码$ {KEYCHAIN}

为我解决了。

这篇关于Codeign返回未知错误-1 = ffffffffffffffff的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 20:14