Question

I installed the Facebook SDK and followed one of their tutorials in order to provide some very basic FB functionality to my app. The app, and the FB integration seems to work just fine so I think I did a decent job with the tutorial. When I attempt to Archive the project so that I can throw a build up on TestFlight, I get a Failure due to 15 linker errors, that looks like the below text (I copied it from the app log). It seems to be related to lsqlite3.0, which the FB tute said to add to the build settings under 'other linkage'. I am not quite sure what to do to resolve. Could I get some advice? That would be super awesome, thanks! Here are the errors:

Undefined symbols for architecture armv7: "_sqlite3_reset", referenced from: _initializeStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_prepare_v2", referenced from: _initializeStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_open_v2", referenced from: ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_bind_text", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o) "_sqlite3_step", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _dropTrimmingTable] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) ... "_sqlite3_bind_double", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) "_sqlite3_bind_int", referenced from: -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) "_sqlite3_finalize", referenced from: _releaseStatement in FacebookSDK(FBCacheIndex.o) "_sqlite3_column_text", referenced from: -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) "_sqlite3_exec", referenced from: ___36-[FBCacheIndex initWithCacheFolder:]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_errmsg", referenced from: _releaseStatement in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _updateEntryInDatabaseForKey:entry:] in FacebookSDK(FBCacheIndex.o) _initializeStatement in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _writeEntryInDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _removeEntryFromDatabaseForKey:] in FacebookSDK(FBCacheIndex.o) ... "_sqlite3_column_int", referenced from: -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _fetchCurrentDiskUsage] in FacebookSDK(FBCacheIndex.o) -[FBCacheIndex _trimDatabase] in FacebookSDK(FBCacheIndex.o) "_sqlite3_close", referenced from: ___23-[FBCacheIndex dealloc]_block_invoke_0 in FacebookSDK(FBCacheIndex.o) "_sqlite3_column_double", referenced from: -[FBCacheIndex _readEntryFromDatabase:] in FacebookSDK(FBCacheIndex.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Was it helpful?

Solution

Archive uses a release build by default and your linker setting are only set for debug. Check that your linker settings are valid for release build.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top