2011-03-28 67 views
0

我使用条形码API在我的应用程序,当我试图构建应用程序的iPhone上测试它显示了以下错误... “ 库没有发现-lbardecode collect2:LD返回1退出状态 命令/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2失败,退出代码1 “如何修复库bug?

回答

1

您have'nt包括相关项目中的library (framework)barcode API

编辑:用下面的SO帖子找到你的解决方案..

library not found - Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

+0

@Anand:通过教程去为你的项目http://wiki.remobjects.com/wiki/Linking_Custom_Frameworks_from_your_Xcode_Projects – Jhaliya 2011-03-28 06:10:59

+0

我正在包括添加自定义的框架,但它表明,错误 – Anand 2011-03-28 06:11:03

+0

@Anand:与第一清洁尝试再建。 .. – Jhaliya 2011-03-28 06:11:56

0

我解决我的问题如下:

在搜索路径,库搜索路径,双击并添加以下内容:

$(SRCROOT)/libbardecode/Release$(EFFECTIVE_PLATFORM_NAME) 

那么这将正确版本的链接libbardecode.a,无论你使用哪个目标。