"_OBJC_CLASS_$_GDTStorage", referenced from:

316 views Asked by At

I keep getting this warning while trying to build my app, also can't link to firebase. I am using xcode 9.2

'''Undefined symbols for architecture x86_64:
  "_sqlite3_prepare_v3", referenced from:
      -[APMSqliteStore prepareSQL:error:] in GoogleAppMeasurement(APMSqliteStore_645df61703f07a6639f4b1de4d0cf5c3.o)
  "_OBJC_CLASS_$_GDTStorage", referenced from:
      objc-class-ref in libGoogleDataTransport.a(GDTUploadPackage.o)
      objc-class-ref in libGoogleDataTransport.a(GDTLifecycle.o)
      objc-class-ref in libGoogleDataTransport.a(GDTUploadCoordinator.o)
      objc-class-ref in libGoogleDataTransport.a(GDTTransformer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)'''[1]
1

There are 1 answers

1
Vyacheslav On

Add libsqlite3.tbd to 'Linked Frameworks and Libraries' in the project properties.