XCode 3:根据架构(CPU 类型)链接不同的库

发布于 2024-09-04 05:34:18 字数 220 浏览 2 评论 0原文

编辑:这个问题可能很老了,它与 xcode 3 有关。

我正在开发一个需要 voip 支持的 iPhone 应用程序,所以我添加了 ARM 版本的 pjsip 库。但如果我使用 iPhone 模拟器,我想链接 i386 版本的库。我怎样才能做到这一点?

EDIT: This question is probably old it is related to xcode 3.

I'm developing an iPhone app which needed voip support so i added the ARM version of pjsip libraries. But if I'm using the iPhone simulator i want to link the i386 version of the libraries. How can i do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

面犯桃花 2024-09-11 05:34:18

我想我终于解决了。您需要转到项目设置并选择构建选项卡。之后,选择您想要有条件的设置,例如“其他链接器标志”,然后从左下角的小下拉列表中选择“添加构建设置条件”。根据需要多次执行此操作。

这里是一张解释它的图片。

I think I solved it at last. You need to go to your project setting and select the build tab. After that select a setting that you want to be conditional for example Other Linker Flags and from the little drop-down thingy at the bottom left select "Add build setting condition". Do this as many times as necessary.

Here is an image to explain it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文