If I access either CBLValueIndexConfiguration
or CBLFullTextIndexConfiguration
in my code, when compiling an iOS app, I get this linker error (similarly for both files):
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CBLValueIndexConfiguration", referenced from:
objc-class-ref in Test.o
ld: symbol(s) not found for architecture x86_64
clang: error linker command failed with exit code 1 (use -v to see invocation)
Both of these files are new in v3. I receive the error with either v3.0.0 or v3.0.1. Added via cocoapods:
pod 'CouchbaseLite', '3.0.0' # or '3.0.1'
The classes are defined properly in the framework headers. I need to get an iOS device to test if the app will build successfully for arm64 architecture, so can’t confirm if it works for non-simulator builds yet.
This is not an issue with the CouchbaseLite-Swift
pod, only the ObjC framework.
To reproduce:
- Create a new iOS app.
pod init
- Add above to podfile.
pod install
- Then reference either of those classes in the code, e.g.:
let test = CBLValueIndexConfiguration(expression: ["test"])
- Attempt to build.