【问题标题】:Swift stdlib tool error - the specified item could not be found in keychainSwift stdlib 工具错误 - 在钥匙串中找不到指定的项目
【发布时间】:2019-10-08 23:01:50
【问题描述】:

我有一个使用 Objective-C 作为基础的颤振应用程序,然后我添加了一些基于 SWIFT 的库,所以我打开了 SWIFT 支持,所有的麻烦都由此开始。我添加了 SWIFT 支持:

config.build_settings['SWIFT_VERSION'] = '5.0'

use_frameworks!

platform :ios, '9.0'

到我的 Podfile。此操作删除了所有与 swift-lib 相关的错误,但现在我收到了上面关于代码设计的错误。

我已阅读有关此错误的信息并尝试了以下操作:

  1. 重置登录钥匙串
  2. 在“始终允许”的提示中输入登录钥匙串密码
  3. 删除派生数据
  4. 重新安装 Xcode
  5. 重启 macOS 一百万次
  6. 将开发者证书移动到系统钥匙串
  7. 创建一个全新的 Apple ID 和所有证书

没有任何帮助,错误就在这里,并且是相同的。

Developer/Xcode/DerivedData/Runner-bwqlfsixhrzgsfakfinzgchwtvci/Build/Products/Debug-iphoneos/Runner.app/Frameworks/libswiftCoreLocation.dylib'
error: The specified item could not be found in the keychain.

Probing signature of /Users/alutikova/Library/Developer/Xcode/DerivedData/Runner-bwqlfsixhrzgsfakfinzgchwtvci/Build/Products/Debug-iphoneos/Runner.app/Frameworks/libswiftDispatch.dylib
error: The specified item could not be found in the keychain.
Probing signature of /Users/alutikova/Library/Developer/Xcode/DerivedData/Runner-bwqlfsixhrzgsfakfinzgchwtvci/Build/Products/Debug-iphoneos/Runner.app/Frameworks/libswiftMetal.dylib
error: The specified item could not be found in the keychain.

Probing signature of /Users/alutikova/Library/Developer/Xcode/DerivedData/Runner-bwqlfsixhrzgsfakfinzgchwtvci/Build/Products/Debug-iphoneos/Runner.app/Frameworks/libswiftQuartzCore.dylib
  /usr/bin/codesign '-r-' '--display' '/Users/alutikova/Library/Developer/Xcode/DerivedData/Runner-bwqlfsixhrzgsfakfinzgchwtvci/Build/Products/Debug-iphoneos/Runner.app/Frameworks/libswiftQuartzCore.dylib'
error: The specified item could not be found in the keychain.

任何帮助将不胜感激,因为我完全陷入困境。

【问题讨论】:

    标签: ios swift xcode flutter codesign


    【解决方案1】:

    好的,唯一有帮助的解决方案是此线程中描述的解决方案:https://forums.developer.apple.com/message/325197#325197

    问题是我在 USB 端口中插入了一个活动的 USB 令牌,因为我需要一个 VPN 连接才能在我的机器上处于活动状态。如果我删除它,代码设计工作正常。如果您无法移除 USB 令牌或智能卡令牌,上面的链接提供了一种解决方法。

    希望对某人有所帮助!

    【讨论】:

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