使用Three20与另一个库和冲突的链接标志 [英] Using Three20 with another library and conflicting linkage flags

查看:114
本文介绍了使用Three20与另一个库和冲突的链接标志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Three20添加到我的项目中,但-ObjC和-all_load标志正在弄乱我正在使用的另一个库。另一个库是用于条形码读取的ZXingWidget,但我不认为该部分是相关的。

I'm trying to add Three20 to my project, but the -ObjC and -all_load flags are messing with another library I'm using. The other library is ZXingWidget for barcode reading, but I don't think that part is relevant.

我有理由确定答案是使用force_load而不是all_load和然后指向我的三个库,但我无法让它工作。

I'm reasonably sure the answer is to use force_load instead of all_load and then point to my three20 libraries, but I can't get it to work.

以下是我现在正在使用的内容:

Here's what i'm using now:

-force_load ../facebook-three20/Build/Products/Debug-iphonesimulator/*.a

但是我得到了errno = 22 build立即失败。

But I get an errno=22 build fail immediately.

即使我让force_load工作,-ObjC标志也会导致问题。我怎么能为不同的库提供不同的标志?我没有看到在实际库上放置构建标志的方法。

Even if I get the force_load to work, the -ObjC flag causes issues all by itself. How am I supposed to have different flags for different libraries? I don't see a way to put build flags on the actual libraries.

编辑:所以我刚用强制加载添加了每个.a库,它' ll编译,但它仍然给我一个无法识别的选择器,我在执行force_load之前有一些来自Three20的内部调用。是否有我缺少的库,或者我做错了吗?

So I just added each of the .a libraries with force load, and it'll compile, but it still gives me the unrecognized selector with some internal call from Three20 that I had before I did the force_load. Are there libraries I'm missing, or am I doing this wrong?

推荐答案

显然这与XCode 3.2中的错误有关标志如何工作,XCode 4修复它。 :\

Apparently this is related to a bug in XCode 3.2 with how the flags work, and XCode 4 fixed it. :\

这篇关于使用Three20与另一个库和冲突的链接标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆