Zack117
Zack117

Reputation: 1075

Creating unit tests for Xcode project results in error : Showing Recent Messages :-1: Undefined symbol: _OBJC_CLASS_$_FBSDKCodelessIndexer

When adding this to my pods file ( for unit testing purposes )

target 'MY_PROJECT_TITLE_Tests' do
inherit! :search_paths
pod 'Firebase'
end

I get the error when compiling:

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)

there were no errors prior to the "pod install" of the above podfile change. Why is this / is there a fix? thank you.

Upvotes: 0

Views: 3943

Answers (1)

Paul Beusterien
Paul Beusterien

Reputation: 29572

Likely a pod update is needed.

There could be an incompatibility between old versions of Firebase and FBSDK like How to fix build error with FBSDKLoginKit in Xcode

Upvotes: 2

Related Questions