ios - 带有 Objective-C 文件的 Swift Cocoapods 给出了未定义的符号
问题描述
我遇到了以下错误消息:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_VTapManager", referenced from:
objc-class-ref in VTapManagerHelper.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
解决方案
您是否尝试过启用动态框架?这对我有用。
为此,请转到工作区中的 podfile 并打开它,然后:
#Uncomment the next line if you're using Swift or would like to use dynamic frameworks
remove the hash here -> #use_frameworks!
推荐阅读
- python - 远程地址的主机接口或路由
- drupal-7 - 如何在 drupal 7 中为用户活动创建报告
- jquery-ui - 了解 jQuery UI 按钮小部件
- javascript - 无法使用 webpack 4 转换 .marko 文件
- java - 如何使用 lambda 表达式创建满足条件的数组列表
- highcharts - Highchart Y 轴刻度值缺失
- bash - 丢失时在文件末尾添加分号
- java - maven 复制依赖与定义依赖
- c++ - 如何使用 libgit2 编写正确的 git pull
- java - 当我合并使用 Log4j 2 的库时,java.util.logging 停止工作