SVN代码问题

时间:2012-07-30 14:28:52

标签: xcode svn linker-errors

从SVN中提取时,我的iOS代码存在问题。我的代码在我的MAC上工作正常,但在我上传到SVN并尝试构建我的项目之后,它反复显示相同的错误。

  

Apple Mach-O Linker(id)错误

     

ld:找不到-lzbar的库   命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1

这个问题非常烦人,使我在代码上的工作非常困难。这是完整的错误:

  

Ld /Users/administrator/Library/Developer/Xcode/DerivedData/SmartDealer-hezswmtfdvujkibrhkmqudlypdqk/Build/Products/Debug-iphonesimulator/SmartDealer.app/SmartDealer normal i386       cd“/ Users / administrator / Desktop / test / Trade-In 4S”       setenv MACOSX_DEPLOYMENT_TARGET 10.6       setenv PATH“/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr / X11 /斌:/选择/ local / bin目录:在/ usr /本地/ git的/ bin中”       /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L / Users / administrator / Library / Developer / Xcode / DerivedData / SmartDealer-hezswmtfdvujkibrhkmqudlypdqk / Build / Products / Debug-iphonesimulator“-L / Users / administrator / Desktop / test / Trade-In 4S”“ - L / Users / administrator / Desktop / test / Trade-In 4S / Classes / ZBarSDK“” - L / Users / administrator / Desktop / test / Trade-In 4S / ZBarSDK“-F / Users / administrator / Library / Developer / Xcode / DerivedData / SmartDealer-hezswmtfdvujkibrhkmqudlypdqk / Build / Products / Debug-iphonesimulator -filelist /Users/administrator/Library/Developer/Xcode/DerivedData/SmartDealer-hezswmtfdvujkibrhkmqudlypdqk/Build/Intermediates/SmartDealer.build/Debug-iphonesimulator/SmartDealer.build/Objects-normal/i386/SmartDealer.LinkFileList -mmacosx-version-min = 10.6 -Xlinker -objc_abi_version -Xlinker 2 -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED = 40000 -framework F oundation -framework UIKit -framework CoreGraphics -framework CoreData -lsqlite3 -framework QuartzCore -weak_framework CoreMedia -weak_framework CoreVideo -liconv -lzbar -weak_framework AVFoundation -o / Users / administrator / Library / Developer / Xcode / DerivedData / SmartDealer-hezswmtfdvujkibrhkmqudlypdqk / Build / Products /Debug-iphonesimulator/SmartDealer.app/SmartDealer

     

ld:找不到-lzbar的库   命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang失败,退出代码为1

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

您确定'ZBarSDK'文件夹已成功包含在SVN中吗?您似乎正在尝试链接到该文件夹​​中的框架,因此您应该找到框架的标准化位置并将其安装在所有开发计算机上,或者单独保留项目但确保已成功添加ZBarSDK文件夹与您的其他来源一起到您的SVN回购。

您可以从命令行执行此操作 - 只需cd进入项目文件夹和svn add ZBarSDK