复制项目后发生此错误:
Ld /Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Products/Debug-iphoneos/SmartEdu.app/SmartEdu normal armv7s
cd /Users/DBK/DEV/iOS/DaouIncube/KERIS/Source/code/trunk/app_binary/SmartEdu
setenv IPHONEOS_DEPLOYMENT_TARGET 5.0
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Products/Debug-iphoneos -L/Users/DBK/DEV/iOS/DaouIncube/KERIS/Source/code/trunk/app_binary/SmartEdu -F/Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Products/Debug-iphoneos -filelist /Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Intermediates/SmartEdu.build/Debug-iphoneos/Device-SmartEdu.build/Objects-normal/armv7s/SmartEdu.LinkFileList -dead_strip -ObjC -lxml2 -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.0 -framework MediaPlayer -framework AssetsLibrary -framework MobileCoreServices -framework AVFoundation -lxml2 -framework UIKit -framework Foundation -framework CoreGraphics -framework QuartzCore -lIN3EbookEngine_device -framework SystemConfiguration -lmp3lame -lNssoAgent-device -lz -Xlinker -dependency_info -Xlinker /Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Intermediates/SmartEdu.build/Debug-iphoneos/Device-SmartEdu.build/Objects-normal/armv7s/SmartEdu_dependency_info.dat -o /Users/DBK/Library/Developer/Xcode/DerivedData/SmartEdu-aqcslncevdjpaygiwxdpftddysjb/Build/Products/Debug-iphoneos/SmartEdu.app/SmartEdu
ld: library not found for -lmp3lame
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这里是图片
答案 0 :(得分:0)
除了您需要正确格式化错误(至少在其周围放置代码块等)之外,您可能需要查看来自LLDB(调试器)的调试错误消息。 clang / linker错误意味着在编译项目时找不到某个文件。
ld: library not found for -lmp3lame
clang: error: linker command failed with exit code 1 (use -v to see invocation)
^这是你应该注意的错误。它注意到找不到-lmp3lame的库。这意味着在编译时,此库不存在。它可能不包含在链接的类中,它可能不包含在您构建的目标中,您可能没有正确指导框架的搜索路径/标题路径。通过上面提供的少量信息,这可能是各种各样的事情,这是您最好的答案。