【发布时间】:2017-03-30 01:12:56
【问题描述】:
我正在使用谷歌提供的 tesseract。在遵循this 教程之后,我终于完成了我的应用程序。但是,当我运行它时,我遇到了未定义符号的问题。这是错误
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我该如何解决这个问题?我尝试在线搜索,但没有一个解决方案对我有用。我尝试重新安装 Pod 并对其进行更新。然后我遇到了这个错误
clang: error: no such file or directory: '/Users/admin/Desktop/tst/Pods/Target Support Files/Pods-tst/Pods-tst-dummy.m'
clang: error: no input files
当我尝试重做项目时,我得到了他的错误
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_G8Tesseract", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
【问题讨论】:
-
你有一些问题:Pods-tst-dummy.m 请检查这个forst。
-
您最近对项目做了哪些更改??
-
我找不到我的 Pods-tst-dummy.m。最近的变化是什么意思。我只是按照该网站上的步骤进行操作
-
尝试:pod update --verbose
-
感谢它首先帮助解决了第一个错误。但是现在
ld: library not found for -lPods-test出现了这个错误