"Undefined characters for x86_64 architecture:" Error with Branch.io

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.

+4
source share
1 answer

For me in Subfile, uncommenting the following line and reinstalling the installation resolved such problems in Xcode:

use_frameworks!

And do

pod install

XCode, . .

+1

Source: https://habr.com/ru/post/1629449/


All Articles