我正在研究一个2年前制作的项目。我的想法是将它移植到iPad Mini和iPhone 5.但是我甚至无法在Xcode 4.5.2上编译它,我猜它与它制作的旧iOS有关。 有人可以帮我理解这个错误信息吗?
Ld /Users/luisharo/Library/Developer/Xcode/DerivedData/HomeBroker-dzpamgfducpqanemuwqzgjkjwoka/Build/Products/Debug-iphonesimulator/HomeBroker.app/HomeBroker normal i386 cd / Users / luisharo / Mobiik / GBM / gbm-homebroker-iphone / HomeBroker setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv 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/iPhoneSimulator6。 0.sdk -L / Users / luisharo / Library / Developer / Xcode / DerivedData / HomeBroker-dzpamgfducpqanemuwqzgjkjwoka / Build / Products / Debug-iphonesimulator -F / Users / luisharo / Library / Developer / Xcode / DerivedData / HomeBroker-dzpamgfducpqanemuwqzgjkjwoka / Build /产品/调试-iphonesimulator -F /用户/ luisharo / Mobiik / GBM / gbm-homebroker-iphone / HomeBroker -filelist /Users/luisharo/Library/Developer/Xcode/DerivedData/HomeBroker-dzpamgfducpqanemuwqzgjkjwoka/Build/Intermediates/HomeBroker.build/ Debug-iphonesimulator / HomeBroker.build / Objects-normal / i386 / HomeBroker.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -lgcov -fobjc-link-runtime -fprofile-arcs -ftest-coverage -Xlinker -no_implicit_dylibs -mios-simulator-version -min = 5.1 -framework MessageUI -framework AudioToolbox -framework SystemConfi guration -framework UIKit -framework Foundation -framework CoreGraphics -framework CoreData -framework QuartzCore -lxml2 -o /Users/luisharo/Library/Developer/Xcode/DerivedData/HomeBroker-dzpamgfducpqanemuwqzgjkjwoka/Build/Products/Debug-iphonesimulator/HomeBroker.app/HomeBroker
ld:找不到-lgcov的库 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)
答案 0 :(得分:1)
根据错误消息:
ld:找不到-lgcov clang的库:错误:链接器命令失败 退出代码1(使用-v查看调用)
可能存在两个问题:
如果您根本没有gcov库,请安装它。
如果您有gcov库,请确保链接器看到它,请使用:
-Lpath/to/libgcov