我在我的项目中添加了FMDB,然后添加了框架libsqlite3.dylib和libsqlite3.0.dylib,但我仍然遇到了构建错误。如果我从我的项目中删除FMDB类,那么它构建就好了。我应该检查其他什么?
有关错误的详细信息:
Ld /Users/gmi/Library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Products/Debug->iphonesimulator/iNROMockUp5.app/iNROMockUp5 normal i386 cd / iOSDev / Testing / iNROMockUp5 setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH>“/ Developer / Platforms / iPhoneSimulator.platform / Developer / usr / bin:/ Developer / usr / bin:/ usr / bi> n:/ bin:/ usr / sbin:/ sbin” /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -arch i386> -isysroot> /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk - > L / Users / gmi / Library / Developer / Xcode / DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm / Build / Products / Debug-iphonesimulator - > F / Users / gmi / Library / Developer / Xcode / DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm / Build / Products / Debug-iphonesimulator -filelist> / Users / gmi / Library / Developer / Xcode / DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm / Build / Intermediates / iNROMockUp5.build / Debug-> iphonesimulator / iNROMockUp5.build / Objects- normal / i386 / iNROMockUp5.LinkFileList -mmacosx-> version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -lsqlite3 -lsqlite3.0 -framework> MapKit -framework UIKit -framework Foundation -framework CoreGraphics -o> / Users / GMI /库/开发商/ Xcode中/ DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm /编译/产品/调试 - > iphonesi mulator / iNROMockUp5.app / iNROMockUp5
ld:/ Users /gmi/Library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/Debug->iphonesimulator/iNROMockUp5.build/Objects-normal/中的重复符号_main i386 / fmdb.o和> / Users / gmi / Library / Developer / Xcode / DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm / Build / Intermediates / iNROMockUp5.build / Debug-> iphonesimulator / iNROMockUp5.build / Objects-normal / i386 /main.o用于架构i386 collect2:ld返回1退出状态 命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2失败>退出代码为1
ld:/ Users /gmi/Library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/Debug->iphonesimulator/iNROMockUp5.build/Objects-normal/中的重复符号_main i386 / fmdb.o和> / Users / gmi / Library / Developer / Xcode / DerivedData / iNROMockUp5-> gjmgpakyszrgwbbxnkdxehexacxm / Build / Intermediates / iNROMockUp5.build / Debug-> iphonesimulator / iNROMockUp5.build / Objects-normal / i386 /main.o for architecture i386
命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2因退出代码1而失败
答案 0 :(得分:17)
从你的项目中删除fmdb.m,你会没事的。
答案 1 :(得分:0)
从项目中删除main.m
,你会没事的。