Ios 带有Objective-C文件的Swift CoCoapod给出了未定义的符号
我遇到以下错误消息:Ios 带有Objective-C文件的Swift CoCoapod给出了未定义的符号,ios,objective-c,swift,iphone,xcode,Ios,Objective C,Swift,Iphone,Xcode,我遇到以下错误消息: 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 (us
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)
这是次要的,但别忘了退出Xcode并运行您的yourProject.xcworkspace而不是yourProject.xcodeproj在安装CoCoCoaPods之后,您是否尝试过启用动态框架?这对我很管用 要执行此操作,请转到工作区中的pod文件并打开它,然后:
#Uncomment the next line if you're using Swift or would like to use dynamic frameworks
remove the hash here -> #use_frameworks!
有点不清楚。当发生此错误时,请告诉我们您的类有什么。如果您正在使用任何pod,请删除pod文件夹并删除派生数据,然后重新清理并生成。如果您遇到相同的错误,请参考以下链接:发布一些代码,解释您为获得该错误所做的步骤,否则不可能帮助每个好的问题都有一个:
?