在XCode(产品>存档)中存档应用程序时,出现以下错误:
CodeSign /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/Build/Intermediates/ArchiveIntermediates/name/InstallationBuildProductsLocation/Applications/name.app
cd /Users/xxx/Documents/name/App/platforms/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: xxx xxx (S5L8942T98)"
Provisioning Profile: "iOS Team Provisioning Profile: xxx"
(xxx)
/usr/bin/codesign --force --sign xxx --entitlements /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/Build/Intermediates/ArchiveIntermediates/name/IntermediateBuildFilesPath/name.build/Release-iphoneos/name.build/name.app.xcent --timestamp=none /Users/xxx/Library/Developer/Xcode/DerivedData/name-xxx/Build/Intermediates/ArchiveIntermediates/name/InstallationBuildProductsLocation/Applications/name.app
error: The specified item could not be found in the keychain.
我吊销了所有证书并创建了新的配置文件,很遗憾,它没有帮助。
我找到了this thread,但我认为这无关。显然,我的钥匙串中缺少某些东西,但是呢?
编辑:
这是我的钥匙串的屏幕截图:
该ID与错误代码中的ID相匹配。
最佳答案
一种简单的解决方案是转到“派生数据”(XCode>“首选项”>“位置”>单击“派生数据目录”旁边的箭头),然后删除以您的应用程序命名的文件夹。
作为一项额外措施,您可以在第一步之后重新启动XCode并清理项目,但是可能没有必要。
关于ios - 在XCode中签名应用:在钥匙串(keychain)中找不到指定的项目,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/42313794/