简体   繁体   English

XCode 9.2-iOS-存档生产应用在代码签名失败,出现未知错误

[英]XCode 9.2 - iOS - Archive production app fails on codesign with unknown error

Just a few weeks ago I had no problem archiving and uploading my app. 就在几周前,我在存档和上传我的应用程序时没有问题。 Now suddenly I am getting /usr/bin/codesign failed with exit code 1 and most troubling is this is the reason: 现在突然我得到/usr/bin/codesign failed with exit code 1 ,最麻烦的是原因:

unknown error -1=ffffffffffffffff

Most people who have this issue I've seen have more helpful error messages. 我见过的大多数遇到此问题的人都有更多有用的错误消息。 Perhaps something in Apple's system has changed, because nothing has changed on my end and all my certificates are good until next year. 也许苹果系统中的某些东西已经改变了,因为到最后我什么都没有改变,而且我所有的证书都将持续到明年。 Any insight would be greatly appreciated. 任何见识将不胜感激。

Here's the full error output: 这是完整的错误输出:

CodeSign /Users/USERNAME/Library/Developer/Xcode/DerivedData/THE_APP-gmiiqepwfsfeorbketgcgewghlil/Build/Intermediates.noindex/ArchiveIntermediates/THE_APP/InstallationBuildProductsLocation/Applications/THE_APP.app
    cd /Users/USERNAME/ots/ios
    export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Signing Identity:     "iPhone Developer: ___________ (_________)"
Provisioning Profile: "iOS Team Provisioning Profile: ______________"
                      (______________________)

    /usr/bin/codesign --force --sign XXXXXXXXXXXXXXXXXXXXXX--entitlements /Users/USERNAME/Library/Developer/Xcode/DerivedData/THE_APP-gmiiqepwfsfeorbketgcgewghlil/Build/Intermediates.noindex/ArchiveIntermediates/THE_APP/IntermediateBuildFilesPath/THE_APP.build/Release-iphoneos/THE_APP.build/THE_APP.app.xcent --timestamp=none /Users/USERNAME/Library/Developer/Xcode/DerivedData/THE_APP-gmiiqepwfsfeorbketgcgewghlil/Build/Intermediates.noindex/ArchiveIntermediates/THE_APP/InstallationBuildProductsLocation/Applications/THE_APP.app



/Users/USERNAME/Library/Developer/Xcode/DerivedData/THE_APP-gmiiqepwfsfeorbketgcgewghlil/Build/Intermediates.noindex/ArchiveIntermediates/THE_APP/InstallationBuildProductsLocation/Applications/THE_APP.app: unknown error -1=ffffffffffffffff
Command /usr/bin/codesign failed with exit code 1

I changed my login password for my laptop last week and that seems to be the reason codesign was failing. 上周,我更改了笔记本电脑的登录密码,这似乎是codesign失败的原因。 It seems xcode had stored my old password and was trying to use it with codesign and then silently failing. 似乎xcode已存储了我的旧密码,并试图将其与codesign一起使用,然后悄无声息地失败了。

What I did was lock all my keychains (login was open) and change their passwords. 我所做的是锁定了所有钥匙串(打开了登录名)并更改了他们的密码。 I then closed and re-opened xcode and this time it requested my keychain passwords (which it didn't before) and then I was able to successfully archive my app. 然后,我关闭并重新打开了xcode,这次它要求输入钥匙串密码(以前没有),然后我就能够成功存档我的应​​用程序。

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

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