简体   繁体   English

架构arm64错误的未定义符号是什么? iOS Xcode

[英]what is this Undefined symbols for architecture arm64 error? ios xcode

I have a peculiar error when i try speech recognition framework in objective c 我在目标c中尝试语音识别框架时遇到了一个特殊的错误

Undefined symbols for architecture arm64 : 体系结构arm64未定义符号:

"_OBJC_CLASS_$_SFSpeechAudioBufferRecognitionRequest", referenced from:
      objc-class-ref in test.o   "_OBJC_CLASS_$_SFSpeechRecognizer", referenced from:
      objc-class-ref in test.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

You need to add necessary framework to your project. 您需要为项目添加必要的框架。 Check all third party party framework and search its required framework for support. 检查所有第三方框架并搜索其所需的框架以获得支持。 For eg if you add google analytic then you need to add CoreData , Foundation etc framework. 例如,如果您添加google analytic则需要add CoreDataFoundation等框架。 There is some framework is missing for which third party framework needs. 缺少第三方框架需要的某些框架。

Or you can- 或者您可以-

  1. Press "Cmd+Shift+K" to clean up, and quit Xcode. "Cmd+Shift+K"进行清理,然后退出Xcode。
  2. Delete the cache Run "rm -rf ~/Library/Developer/Xcode/DerivedData" in terminal 删除缓存在终端中运行"rm -rf ~/Library/Developer/Xcode/DerivedData"

  3. Open the project and re-build it 打开项目并重新构建

Hope this will solve your problem. 希望这能解决您的问题。

转到构建阶段->将二进制文件与库链接,然后添加speech.framework。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM