gpt4 book ai didi

ios - 问题理解链接器错误。缺少图书馆?

转载 作者:行者123 更新时间:2023-11-29 04:15:02 25 4
gpt4 key购买 nike

我正在开发一个两年前完成的项目。我的想法是将它移植到 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)

最佳答案

根据错误信息:

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

关于ios - 问题理解链接器错误。缺少图书馆?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13849585/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com