2012-12-12 70 views
0

我正在製作一個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/Products/Debug-iphonesimulator -F/Users/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 SystemConfiguration -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: library not found for -lgcov clang: error: linker command failed with exit code 1 (use -v to see invocation)

回答

1

根據錯誤信息:

ld: library not found for -lgcov clang: error: linker command failed with exit code 1 (use -v to see invocation)

可能有兩個問題:

  1. 你沒有gcov的庫
  2. 您的gcov庫是在不同的位置那麼它之前是

如果你沒有安裝gcov庫。

如果您gcov一個庫確保鏈接器看到它,使用:

-Lpath/to/libgcov