1

各位下午好!我已将我的 iOS 应用程序(用 xCode 编写)减少到 1 个警告和 1 个错误。我的错误是:
ld: library not found for -lzbar clang: error: linker command failed with exit code 1 (use -v to see invocation)

如果有人对此感到满意,请看一下,如果您看到简单的问题,请告诉我。我意识到它缺少链接器文件。我找不到它,并且将此项目中的所有文档重新应用于新项目并不能解决问题。

有人介意帮助我吗?非常感谢。在发布此问题之前,我已尝试在 Google 上无情地回答此问题。不知何故,我找不到一个简明的答案,至于我的问题是什么。

感谢任何愿意提供帮助的人!


Ld /Users/PsychodelicFuzz/Library/Developer/Xcode/DerivedData/CHH-bmbqxvfwddzaupfaavvipxaqwvfx/Build/Products/Debug-iphonesimulator/CHH.app/CHH normal i386
cd "/Users/PsychodelicFuzz/Desktop/Hospital App"
setenv IPHONEOS_DEPLOYMENT_TARGET 6.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.1.sdk -L/Users/PsychodelicFuzz/Library/Developer/Xcode/DerivedData/CHH-bmbqxvfwddzaupfaavvipxaqwvfx/Build/Products/Debug-iphonesimulator -F/Users/PsychodelicFuzz/Library/Developer/Xcode/DerivedData/CHH-bmbqxvfwddzaupfaavvipxaqwvfx/Build/Products/Debug-iphonesimulator -filelist /Users/PsychodelicFuzz/Library/Developer/Xcode/DerivedData/CHH-bmbqxvfwddzaupfaavvipxaqwvfx/Build/Intermediates/CHH.build/Debug-iphonesimulator/CHH.build/Objects-normal/i386/CHH.LinkFileList -dead_strip -Xlinker -objc_abi_version -Xlinker 2 -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework CoreFoundation -framework CoreMedia -framework AVFoundation -framework CoreVideo -framework QuartzCore -framework SystemConfiguration -framework UIKit -framework Foundation -lzbar -o /Users/PsychodelicFuzz/Library/Developer/Xcode/DerivedData/CHH-bmbqxvfwddzaupfaavvipxaqwvfx/Build/Products/Debug-iphonesimulator/CHH.app/CHH

ld:找不到 -lzbar 的库 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

4

0 回答 0