ios - 未找到自动链接框架领域

标签 ios swift

我有一个应用程序,突然出现以下错误。我在项目中直接导入了迦太基的那些框架。

在我的 ViewController 类中,我只是粘贴:

import Alamofire

print(AlamofireVersionNumber)

ld: warning: Auto-Linking framework not found Realm
ld: warning: Auto-Linking framework not found Alamofire
Undefined symbols for architecture armv7:
  "_AlamofireVersionNumber", referenced from:
      ChpuDemo.ViewController.viewDidLoad() -> () in ViewController.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我确实尝试清理、删除派生数据等。这些错误是什么意思?

最佳答案

我通过 CocoaPods 为主项目添加相同的框架来解决问题,这复制了我的自定义库中的相同框架。

关于ios - 未找到自动链接框架领域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51310853/

相关文章:

ios - SwiftUI 演示模式 : Check if view is presented by sheet

ios - 如何以“2小时之前”的格式格式化日期和时间?

ios - 是否可以在基于文档的应用程序中使用 Core Data?

iOs 方向宽度和高度小于应有的值

ios - 在 while 循环中更新 UIView 背景颜色

ios - swift 使用未解析的标识符'NSURLRequestUseProtocolCachePolicy'

C# 等效于 Swift typealias

ios - 如何以编程方式初始化/使用带有 CellStyle = .value1 的 UITableViewCells?

ios - "Ambiguous reference to member ' init(...)"调用基类初始化器

ios - 如何在带有重复的 animateWithDuration 的每个动画之间更改 UILabel 的文本?