ios - ld : framework not found IDZSwiftCommonCrypto

标签 ios swift commoncrypto

我已经安装了pod libcommoncrypto ,路径是 <project>/Pods/IDZSwiftCommonCrypto/IDZSwiftCommonCrypto/*.swift文件

我不明白为什么Xcode无法找到 pod 安装的框架.

编辑(Podfile)

source 'https://github.com/CocoaPods/Specs.git'
project 'myproject.xcodeproj'
target 'myproject' do
  use_frameworks!
  pod 'Toaster'
  pod 'libCommonCrypto'
end

Library Project

编辑:未找到 CommonCrypto CommonCrypto not found

最佳答案

您显然将 IDZCSwiftCommonCryptoToaster 作为“链接的框架和库”中的显式条目,而不是作为 cocoapods 的一部分。删除这两个并重试,这些应该只能通过 cocoapods 为您创建的 Pods_SwiftCommons.framework 添加到您的应用中。

另外:pod 'libCommonCrypto'根本不会创建任何名为IDZSwiftCommonCrypto的文件,而是我找到Pods/libCommonCrypto/CommonCrypto.{h,swift} ,正如我所料。 IDZSwiftCommonCrypto 是另一个 pod,与 libCommonCrypto 无关,如果您仍然有这些文件,我建议清理您的 Pods 目录并再次运行 pod update

关于ios - ld : framework not found IDZSwiftCommonCrypto,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48663537/

相关文章:

ios - 为 swift 添加 Commoncrypto 文件后生成错误

ios - 具有 contentMode UIViewContentModeScaleAspectFit 的 UIImageView 的 UILabel

ios - 以编程方式将借记卡或信用卡添加到 ApplePay

ios - 如何编辑 UINavigationBar 中左、右 UIBarButtonItem 的空白区域 [iOS 7]

ios - 如何在 swift 2.0 中从 Dict 中删除重复值

ios - 复合主键域/swift

ios - 带有静态表的动态类型和自调整单元格

c++ - 使用 AES 使用 Common Crypto 和 Crypto++ 加密时的不同结果

iphone - iOS5 上的 CCKeyDerivationPBKDF

iphone - 未登录时的 Game Center 成就