gpt4 book ai didi

ios - 链接器错误: ld: symbol(s) not found for architecture x86_64

转载 作者:行者123 更新时间:2023-11-30 11:59:24 25 4
gpt4 key购买 nike

我正在尝试在 Xcode 9.1 中运行我的 UITests 目标。实际的应用程序运行,但 UITests 目标给了我这个错误。我尝试过重新启动、重新安装 Pod、更新 Pod、更改各种build设置、删除和重新链接框架。有什么想法吗?

Undefined symbols for architecture x86_64: "__T010LearnerLog8DurationCMa", referenced from: __T017LearnerLogUITests21testAddPreviousDrivesC0deF5DriveyyF in testAddPreviousDrives.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果您需要更多信息,请告诉我!

编辑当我在这里取消注释第二行时就会发生这种情况。注释掉后就可以正常运行了。

let realm = try! Realm() //Connect to realm
//print(realm.objects(Journey.self))

最佳答案

事实证明,你不能在 UITests 中做很多事情……其中之一就是 Realm。

关于ios - 链接器错误: ld: symbol(s) not found for architecture x86_64,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47447121/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com