ios - 在 XCode : specified item could not be found in the keychain 中签署应用程序

标签 ios xcode ionic-framework

在 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 ,但我认为这不相关。显然我的钥匙串(keychain)中缺少某些东西,但是什么?

编辑:

这是我的钥匙串(keychain)的截图:

enter image description here

Id 与错误代码中的 ID 相匹配。

最佳答案

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

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

关于ios - 在 XCode : specified item could not be found in the keychain 中签署应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42313794/

相关文章:

ios - 如何在 iOS 上将图像更改 90 度?

ios - 在 swift3 中安装 pod 后,链接器命令失败,退出代码为 1(使用 -v 查看调用)

swift - 代码重构 - Swift

java - 从jsp页面运行.exe文件的代码

android - Ionic 在最新检查期间无法捕获任务 ':app:preDebugBuild' 属性 'compileManifests' 的输入文件指纹

ionic-framework - ionic 4 - build android - 即使安装了 Gradle 也找不到已安装的版本

ios - 在 MonoDeveloper 中获取 java.net.MalformedURLException

当 Firebase 查询限制超过 9 时,iOS 应用程序崩溃

ios - 无法在控制台(调试区)使用 po 命令

javascript - 用于 Cordova 的 Pushwoosh 远程 API