「[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o」の解決方法

phonegapでiPhone開発中に下記のエラー。

Undefined symbols for architecture i386:
"_sqlite3_bind_text", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_close", referenced from:
-[PGSQLitePlugin close:withDict:] in PGSQLitePlugin.o
-[PGSQLitePlugin dealloc] in PGSQLitePlugin.o
"_sqlite3_column_count", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_column_double", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_column_name", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_column_text", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_column_type", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_errmsg", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_finalize", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_last_insert_rowid", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_open", referenced from:
-[PGSQLitePlugin open:withDict:] in PGSQLitePlugin.o
"_sqlite3_prepare_v2", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_step", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
"_sqlite3_total_changes", referenced from:
-[PGSQLitePlugin executeSql:withDict:] in PGSQLitePlugin.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


"Build Phases"の"Link Binary With Libraries"に
「libsqlite3.0.dylib」を追加すればOK。
スポンサーサイト

トラックバック

コメント

コメントを残す

Secret


プロフィール

U2K

Author:U2K
いろいろプログラムに関しての覚え書きをちょくちょくと書いていきます。

オススメ










オススメ

忍者AdMax

u2k on Twitter

最近の記事