Apple Mach-O 链接器错误 sqlite3 [英] Apple Mach-O Linker Error sqlite3
问题描述
我在构建应用程序时遇到此错误.谁能帮我解决这个问题?
I got this error when building my apps. can anyone help me solve this problem?
我正在使用 swift 和 parse.com.非常感谢您的帮助!
I'm using swift and parse.com. thank you so much for your help!
由于我无法发布图片,所以我在下面发布了整个错误消息.
since I can't post image, below I post the whole error message.
Undefined symbols for architecture i386:
"_sqlite3_bind_blob", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_double", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_int64", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_null", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_parameter_count", referenced from:
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_bind_text", referenced from:
-[PFSQLiteDatabase _bindObject:toColumn:inStatement:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_close", referenced from:
___30-[PFSQLiteDatabase closeAsync]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_column_blob", referenced from:
-[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_bytes", referenced from:
-[PFSQLiteDatabaseResult dataForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_count", referenced from:
-[PFSQLiteDatabaseResult columnNameToIndexMap] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_double", referenced from:
-[PFSQLiteDatabaseResult doubleForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_int", referenced from:
-[PFSQLiteDatabaseResult intForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_int64", referenced from:
-[PFSQLiteDatabaseResult longForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_name", referenced from:
-[PFSQLiteDatabaseResult columnNameToIndexMap] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_text", referenced from:
-[PFSQLiteDatabaseResult stringForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_column_type", referenced from:
-[PFSQLiteDatabaseResult objectForColumnIndex:] in Parse(PFSQLiteDatabaseResult.o)
-[PFSQLiteDatabaseResult columnIndexIsNull:] in Parse(PFSQLiteDatabaseResult.o)
"_sqlite3_errmsg", referenced from:
-[PFSQLiteDatabase _errorWithErrorCode:] in Parse(PFSQLiteDatabase.o)
"_sqlite3_finalize", referenced from:
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
-[PFSQLiteStatement close] in Parse(PFSQLiteStatement.o)
"_sqlite3_open", referenced from:
___29-[PFSQLiteDatabase openAsync]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_prepare_v2", referenced from:
___59-[PFSQLiteDatabase executeQueryAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
"_sqlite3_reset", referenced from:
-[PFSQLiteStatement reset] in Parse(PFSQLiteStatement.o)
"_sqlite3_step", referenced from:
___57-[PFSQLiteDatabase executeSQLAsync:withArgumentsInArray:]_block_invoke in Parse(PFSQLiteDatabase.o)
-[PFSQLiteDatabaseResult next] in Parse(PFSQLiteDatabaseResult.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
推荐答案
经过反复试验,答案是再次检查所有框架.看来 parse.com 这几个月才更新了.
after trial and error, the answer is check all the framework again. it seems parse.com just made an update in this several months.
目前它需要 libsqlite3.dylib 作为它的库.
currently it need libsqlite3.dylib as on of it library.
如果你发现类似的问题,首先在这里查看最新的需求:https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/existing
if you find similar problem, firstly check the most updated requirement here: https://www.parse.com/apps/quickstart#parse_data/mobile/ios/native/existing
这篇关于Apple Mach-O 链接器错误 sqlite3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!