我有一个应用程序,突然出现以下错误。我在项目中直接导入了迦太基的那些框架。
在我的 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/