适用于iOS的TelerikUI:链接失败:找不到架构i386的ld:符号

时间:2014-07-14 16:32:40

标签: ios xcode linker

我想在我的项目中使用TelerikUI框架。

但当我将其包含在 - > Build Phases - >链接二进制文件与库,构建项目失败,ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

我尝试过包含libsqlite3.dylib,但后来出现了重复的符号错误。

这是完整的日志:

  

Ld /Users/michi/Library/Developer/Xcode/DerivedData/MedSafe-eeygshuvxxscziftuaslwcjyzejc/Build/Products/Debug-iphonesimulator/MedSafeStatic.app/MedSafeStatic normal i386       cd / Users / michi / Documents / MedSafe       export IPHONEOS_DEPLOYMENT_TARGET = 7.1       export 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 /二进制文件/ 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 / Users / 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 -framework MobileCoreServices -lz -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 -framework Ensembles -framework UIKit -framework Foundation -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_info.dat -o / Users / michi /图书馆/开发商/ Xcode中/ DerivedData / MedSafe-eeygshuvxxscziftuaslwcjyzejc /编译/产品/调试-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查看调用)

1 个答案:

答案 0 :(得分:1)

您是否添加了sqlite3框架?右键单击Frameworks,单击“Add \ Existing Frameworks ...”,然后从下拉列表中选择“libsqlite3.dylib”。或者去构建阶段 - 将二进制文件链接到库 - 按+并搜索“libsqlite3.dylib”