Ios 为Xcode项目创建单元测试会导致错误:显示最近的消息:-1:未定义的符号:_OBJC_CLASS_$_FBSDKCodelessIndexer
将其添加到我的pods文件时(用于单元测试) 我在编译时遇到错误:Ios 为Xcode项目创建单元测试会导致错误:显示最近的消息:-1:未定义的符号:_OBJC_CLASS_$_FBSDKCodelessIndexer,ios,swift,iphone,xcode,cocoapods,Ios,Swift,Iphone,Xcode,Cocoapods,将其添加到我的pods文件时(用于单元测试) 我在编译时遇到错误: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_FBSDKCodelessIndexer", referenced from: objc-class-ref in FBSDKMarketingKit(FBSDKButtonIndexer.o) ld: symbol(s) not found for architecture x86_64 clang: err
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKCodelessIndexer", referenced from:
objc-class-ref in FBSDKMarketingKit(FBSDKButtonIndexer.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文件更改的“pod安装”之前没有错误。为什么会这样/有解决办法?多谢各位 可能需要
pod更新
Firebase和FBSDK的旧版本之间可能存在不兼容,如可能需要进行pod更新
Firebase和FBSDK的旧版本之间可能存在不兼容,例如您使用的是facebook sdk吗?因为FBSDKMarketingKit
你使用的是facebook sdk吗?因为FBSDKMarketingKit
是facebook sdk的一类
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKCodelessIndexer", referenced from:
objc-class-ref in FBSDKMarketingKit(FBSDKButtonIndexer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)