I try to use the Branch.io iOS SDK in my iOS application, and when I try to compile, I get the following error:
Undefined characters for the x86_64 architecture are:
"_OBJC_CLASS _ $ _ CSSearchableIndex" referenced by: objc-class-ref in BranchCSSearchableItemAttributeSet.o "_OBJC_CLASS _ $ _ CSSearchableItem" referenced: objc-class-ref in BranchCSSearchableItem _ $ _ CSSearchableItemAttributeSet ", which is referred to: _OBJC_CLASS _ $ _ BranchCSSearchableItemAttributeSet in BranchCSSearchableItemAttributeSet.o
" _OBJC_METACLASS _ $ _ CSSearchableItemAttributeSet ", which is referred to: _OBJC_METACLASS _ $ _ BranchCSSearchableItemAttributeSet in BranchCSSearchableItemAttributeSet.o ld: symbol not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see the call)
As described in the tutorial , I have a Branch-SDK folder correctly added to the project, I configured PLST and added all the code to AppDelegate.m. I skipped step 3 to enable universal links because I won’t need it.
What am I missing, what could be causing this? For this kind of error with other frameworks, it is usually caused by an incorrect class declaration, but I don’t see that I am doing it wrong.
source
share