sqlite3 – 向项目添加外部库时出现“Apple Mach-O(id)链接器”错误

sqlite3 – 向项目添加外部库时出现“Apple Mach-O(id)链接器”错误,第1张

概述我将FMDB添加到我的项目然后添加了框架libsqlite3.dylib和libsqlite3.0.dylib,但我仍然得到构建错误.如果我从我的项目中删除FMDB类,那么它构建就好了.我还应该检查其他什么? 有关错误的详细信息: Ld /Users/gmi/Library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxe 我将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/library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Products/DeBUG->iphonesimulator/iNROMockUp5.app/iNROMockUp5

ld: duplicate symbol _main in /Users/gmi/library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/DeBUG->iphonesimulator/iNROMockUp5.build/Objects-normal/i386/fmdb.o and >/Users/gmi/library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/DeBUG->iphonesimulator/iNROMockUp5.build/Objects-normal/i386/main.o for architecture i386
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin/llvm-gcc-4.2 Failed >with exit code 1

ld: duplicate symbol _main in /Users/gmi/library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/DeBUG->iphonesimulator/iNROMockUp5.build/Objects-normal/i386/fmdb.o and >/Users/gmi/library/Developer/Xcode/DerivedData/iNROMockUp5->gjmgpakyszrgwbbxnkdxehexacxm/Build/Intermediates/iNROMockUp5.build/DeBUG->iphonesimulator/iNROMockUp5.build/Objects-normal/i386/main.o for architecture i386

Command /Developer/Platforms/iPhonesimulator.platform/Developer/usr/bin/llvm-gcc-4.2 Failed with exit code 1

@H_502_28@解决方法 从你的项目中删除fmdb.m,你会没事的. 总结

以上是内存溢出为你收集整理的sqlite3 – 向项目添加外部库时出现“Apple Mach-O(id)链接器”错误全部内容,希望文章能够帮你解决sqlite3 – 向项目添加外部库时出现“Apple Mach-O(id)链接器”错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1157394.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存