【问题标题】:How to fix library bugs?如何修复库错误?
【发布时间】:2011-07-24 05:37:47
【问题描述】:

我在我的应用程序中使用条形码 API,当我尝试构建应用程序以在 iphone 上进行测试时,它显示以下错误... " 找不到 -lbardecode 的库 collect2: ld 返回 1 个退出状态 命令 /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 失败,退出代码为 1 "

【问题讨论】:

    标签: iphone xcode barcode


    【解决方案1】:

    你的项目中没有包含barcode API相关的library (framework)

    已编辑:通过以下 SO 帖子找到您的解决方案..

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

    【讨论】:

    【解决方案2】:

    我解决了我的问题如下:

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

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-04-04
      • 1970-01-01
      • 1970-01-01
      • 2021-05-10
      • 1970-01-01
      • 1970-01-01
      • 2015-12-04
      相关资源
      最近更新 更多