我想在我的项目中使用TelerikUI框架。
但是当我在-> Build Phases-> Link Binaries with library中添加它时,使用ld: symbol(s) not found for architecture i386clang: error: linker command failed with exit code 1 (use -v to see invocation)
构建项目失败
我尝试包括libsqlite3.dylib,但随后出现重复的符号错误。
这是完整的日志:
ld /用户/ michi /库/开发人员/Xcode/DerivedData/MedSafe-eeygshuvxxscziftuaslwcjyzejc/Build/Products/Debug-iphonesimulator/MedSafeStatic.app/MedSafeStatic normal i386
cd /用户/ michi /文档/ MedSafe
出口IPHONEOS_DEPLOYMENT_TARGET = 7.1
导出PATH =“ / Applications / Xcode.app / Contents / Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin:/ bin: / usr / sbin:/ sbin“
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7。 1.sdk -L / Users / michi / Library / Developer / Xcode / DerivedData / MedSafe-eeygshuvxxscziftuaslwcjyzejc / Build / Products / Debug-iphonesimulator -L / Users / michi / Documents / MedSafe -L / Users / michi / Downloads / CorePlot_1。 5.1 / Binaries / iOS -L / Users / michi / Downloads / CorePlot_1.5.1 / Source / build / Debug-iphoneos -F / Users / michi / Library / Developer / Xcode / DerivedData / MedSafe-eeygshuvxxscziftuaslwcjyzejc / Build / Products / Debug- iphonesimulator -F /用户/ michi / Documents / MedSafe -F / Applications / Xcode.app / Contents / Developer / Library / Frameworks -filelist / Users / michi / Library / Developer / Xcode / DerivedData / MedSafe-eeygshuvxxscziftuaslwcjyzejc / Build / Intermediates / MedSafe.build/Debug-iphonesimulator/MedSafe.build/Objects-normal/i386/MedSafeStatic.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -all_load -ObjC -f objc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min = 7.1 -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker / Users / michi / Library / Developer / Xcode / DerivedData / MedSafe- eeygshuvxxscziftuaslwcjyzejc / Build / Intermediates / MedSafe.build / Debug-iphonesimulator / MedSafe.build / MedSafeStatic.xcent -framework TelerikUI -framework Social -framework Accounts -framework Twitter -framework SystemConfiguration -framework StoreKit -framework Security -framework QuartzCore -framell -framework CoreLocation -framework CoreGraphics -framework CFNetwork -framework AudioToolbox -framework MessageUI -framework AddressBookUI -framework AddressBook -lCorePlot-CocoaTouch -framework EventKitUI -framework EventKit -framework AVFoundation -framework CoreAudio -framework MapKit -framework Accelerate -framework Parse -framework FacebookSDK-框架CoreData-框架集成-框架UIKit-框架基础-Xlinker -dependency_info -X链接器/Users/michi/Library/Developer/Xcode/DerivedData/MedSafe-eeygshuvxxscziftuaslwcjyzejc/Build/Intermediates/MedSafe.build/Debug-iphonesimulator/MedSafe.build/Objects-normal/i386/MedSafeStatic_dependency_infos.dat -o / User图书馆/开发人员/Xcode/DerivedData/MedSafe-eeygshuvxxscziftuaslwcjyzejc/Build/Products/Debug-iphonesimulator/MedSafeStatic.app/MedSafeStatic
ld:警告:找不到选项'-L / Users / michi / Downloads / CorePlot_1.5.1 / Source / build / Debug-iphoneos'的目录
体系结构i386的未定义符号:
“ _sqlite3_bind_double”,引用自:
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
(也许您的意思是:_fbdfl_sqlite3_bind_double)
从以下位置引用的“ _sqlite3_bind_int”:
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
(也许您是说:_fbdfl_sqlite3_bind_int)
从以下位置引用的“ _sqlite3_bind_int64”
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
“ _sqlite3_bind_null”,引用自:
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
从以下位置引用的“ _sqlite3_bind_parameter_count”:
-TelerikUI中的[TKSQLiteDBProvider executeUpdateOfData:](TKSQLiteDBProvider.o)
“ _sqlite3_bind_text”,引用自:
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
(也许您的意思是:_fbdfl_sqlite3_bind_text)
“ _sqlite3_changes”,引用自:
-TelerikUI中的[TKSQLiteDBProvider executeUpdateOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeDeleteOfData:](TKSQLiteDBProvider.o)
“ _sqlite3_close”,引用自:
-TelerikUI中的[TKSQLiteDBProvider deinitializeConnection:](TKSQLiteDBProvider.o)
(也许你的意思是:_fbdfl_sqlite3_close)
“ _sqlite3_column_count”,引用自:
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
“ _sqlite3_column_double”,引用自:
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
(也许你的意思是:_fbdfl_sqlite3_column_double)
“ _sqlite3_column_int”,引用自:
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
(也许您是说:_fbdfl_sqlite3_column_int)
从以下位置引用的“ _sqlite3_column_int64”
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
从以下位置引用的“ _sqlite3_column_name”:
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
“ _sqlite3_column_text”,引用自:
-TelerikUI中的[TKSQLiteDBProvider updateSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
(也许您的意思是:_fbdfl_sqlite3_column_text)
“ _sqlite3_column_text16”,引用自:
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
从以下位置引用的“ _sqlite3_column_type”:
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
“ _sqlite3_errmsg”,引用自:
-TelerikUI中的[TKSQLiteDBProvider generateResultInfoWithErrorCode:errorText:](TKSQLiteDBProvider.o)
(也许您是说:_fbdfl_sqlite3_errmsg)
“ _sqlite3_exec”,引用自:
-TelerikUI中的[TKSQLiteDBProvider executeNonQuery:](TKSQLiteDBProvider.o)
(也许您的意思是:_fbdfl_sqlite3_exec)
“ _sqlite3_finalize”,引用自:
-TelerikUI中的[TKSQLiteDBProvider updateSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeInsertOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeUpdateOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeDeleteOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider bindObject:toPos:ofStatement:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
...
(也许您是说:_fbdfl_sqlite3_finalize)
“ _sqlite3_last_insert_rowid”,引用自:
-TelerikUI中的[TKSQLiteDBProvider executeInsertOfData:](TKSQLiteDBProvider.o)
从以下位置引用的“ _sqlite3_open_v2”:
-TelerikUI中的[TKSQLiteDBProvider initializeConnection](TKSQLiteDBProvider.o)
(也许你的意思是:_fbdfl_sqlite3_open_v2)
从以下位置引用的“ _sqlite3_prepare_v2”:
-TelerikUI中的[TKSQLiteDBProvider updateSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeInsertOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeUpdateOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeDeleteOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider checkIndexWithName:](TKSQLiteDBProvider.o)
...
(也许您是说:_fbdfl_sqlite3_prepare_v2)
“ _sqlite3_step”,引用自:
-TelerikUI中的[TKSQLiteDBProvider updateSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider updateIndicesSchemaForTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeInsertOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeUpdateOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider executeDeleteOfData:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider readDataImplWithStatement:parameters:fromTable:](TKSQLiteDBProvider.o)
-TelerikUI中的[TKSQLiteDBProvider checkIndexWithName:](TKSQLiteDBProvider.o)
...
(也许您是说:_fbdfl_sqlite3_step)
ld:找不到体系结构i386的符号
clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
最佳答案
您是否添加了sqlite3框架?右键单击Frameworks,单击“添加\现有框架...”,然后从下拉列表中选择“ libsqlite3.dylib”。或进入构建阶段-将二进制文件与库链接-按+并搜索“ libsqlite3.dylib”