libtool失败,退出代码为1

时间:2012-03-26 10:47:31

标签: ios xcode4 libtool-xcode

我尝试创建一个Xcode-WorkSpace,其中有项目。现在第一个Project是一个基于ZBar Code Reader的静态库。我已经下载了源代码,现在我将名为“src”的finder拖到我的第一个项目中。当我建立它时,问题出在这里:

Libtool /Users/asset/Library/Developer/Xcode/DerivedData/huishow1-efdjffeirjufbndvocvtzkrzkwss/Build/Products/Debug-iphonesimulator/libZBarTest.a normal i386
    cd /Users/asset/iPhone_Tmp/ZBarTest
    setenv MACOSX_DEPLOYMENT_TARGET 10.6
    setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool -static -arch_only i386 -syslibroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk -L/Users/asset/Library/Developer/Xcode/DerivedData/huishow1-efdjffeirjufbndvocvtzkrzkwss/Build/Products/Debug-iphonesimulator -L/Users/asset/iPhone_Tmp/ZBarTest/SDK -L/Users/asset/iPhone_Tmp/ZBarTest/SDK3 -filelist /Users/asset/Library/Developer/Xcode/DerivedData/huishow1-efdjffeirjufbndvocvtzkrzkwss/Build/Intermediates/ZBarTest.build/Debug-iphonesimulator/ZBarTest.build/Objects-normal/i386/ZBarTest.LinkFileList -lxml2 -ObjC -framework Foundation -lzbar -o /Users/asset/Library/Developer/Xcode/DerivedData/huishow1-efdjffeirjufbndvocvtzkrzkwss/Build/Products/Debug-iphonesimulator/libZBarTest.a

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/libtool failed with exit code 1

谁能帮帮我?

1 个答案:

答案 0 :(得分:0)

听起来像缺少依赖。我不熟悉ZBar代码阅读器,但我想它会声明你还没有包含在你的应用程序中的某些系统框架的依赖关系?查看ZBar的文档,确定在包含它时需要链接到哪些框架。通常,当您不包含框架或其他依赖项时,会遇到这些类型的libtool错误。