English 中文(简体)
IOS 多重目标, 每个目标都连接到 自己的建筑静态 lib...?
原标题:IOS multiple targets, with each target linking its own architecture static lib..?
  • 时间:2012-05-25 12:18:09
  •  标签:
  • ios5
  • xcode4

我遇到了以下的问题。 从一个第三方,我需要增加两个不同的(静态)图书馆:一个是模拟器图书馆,一个是设备图书馆(同名libIKEA.a,但结构不同)。

所以我想为模拟器设定一个目标, 其特定的 lib 和装置的一个目标。但我无法让它工作。

如果重复效果良好的目标(模拟器), 并更改 lib (建设阶段 - & gt; Link 图书馆), 项目将不再编辑 。

Ignoring file ..../Debug-iphonesimulator/libIKEA.a, file was built for archive which is not the architecture being linked (armv7)

我还尝试将2个不同的立方体拖入项目,并为每个目标选择了“强”的单线/强”目标。

我希望根据现行计划,只建立一个具体目标(并运行)。

知道怎么继续吗?

最佳回答

OK,明白了。 OK, got it. OK, get it. OK, okay. OK, OK, okay. OK, okay. OK, okay. OK, OK. OK, 明白了。

只需在您的工程文件夹中设置单独的文件夹, 在每个文件夹中复制 lib (. a) 。 然后在构建设置下确保每个构建中您只包含一个 lib 的搜索路径 。

问题回答

暂无回答




相关问题
XCode fails to deploy iPhone app to iPhone 3GS

So I built my iPhone app and it runs fine in the simulator so I wanted to deploy it to my iPhone for one last testing round before I go into open beta testing wiht my distribution profile. I did this ...

How can I "add existing frameworks" in Xcode 4?

I can t find the good old "Add existing frameworks" option. How do I do this? We re talking about Xcode 4 DP2 (in the context of iPhone development, as far as it matters...).

How to rename a project in Xcode?

There are some pretty horrible instructions out there for renaming projects in Xcode. Is there no easy way to do this?

Where did the script menu go in Xcode 4?

I always love the script menu from Xcode and the ability to automatically generate accessor methods definition und declaration. But it looks like in Xcode4 there is no such thing anymore. I know I can ...

Xcode 4 - Connecting Outlets

This page shows how easily I can connect outlets http://developer.apple.com/technologies/tools/whats-new.html in Xcode 4, but I can t get it. I right click and drag an outlet from the new ...

GCC to LLVM migration tips?

Xcode 4 comes with LLVM. As a casual programmer (i.e. download some open source projects and compile them on a mac via command line), is there any tips for the transition?

Building dependencies in Xcode 4

I have a project that has a dependency on a static library. In Xcode 3.2.3 the project that builds the library is setup as a direct dependency in the target settings so that the library is built ...

热门标签