【问题标题】:Signing app in XCode: specified item could not be found in the keychain在 XCode 中签名应用程序:在钥匙串中找不到指定的项目
【发布时间】:2017-02-18 10:12:23
【问题描述】:

在 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 中登录。
  • @iYoung:我按照这里的步骤操作:stackoverflow.com/questions/38016143/…。不幸的是,它并没有解决问题。
  • @FahadJamal:是的,看起来好像该帐户已登录。
  • 我找不到解决方案,不得不完全重新安装我的操作系统。

标签: ios xcode ionic-framework


【解决方案1】:

简单的解决方案是转到派生数据(XCode > Preferences > Locations > 单击派生数据目录旁边的箭头),然后删除以您的应用命名的文件夹。

作为一项额外措施,您可以在第一步之后重新启动 XCode 并清理项目,但这可能不是必需的。

【讨论】:

    猜你喜欢
    • 2020-03-23
    • 2023-04-10
    • 2021-10-06
    • 2017-04-06
    • 1970-01-01
    • 1970-01-01
    • 2019-10-08
    • 1970-01-01
    • 2013-10-03
    相关资源
    最近更新 更多