Xcode 项目中使用的静态库之间的冲突 [英] Conflict between static libraries used in Xcode project

查看:36
本文介绍了Xcode 项目中使用的静态库之间的冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 RestKit、GData 和 Facebook API.它们都有一个 JSON 文件,其中许多共享相同的名称、枚举等.当我编译时,重复出现错误.

I am using RestKit, GData and Facebook API. All of them has a JSON files, many of them share the same name, enums etc. When i compile I get an error on duplicates.

如何防止冲突?

谢谢沙尼

推荐答案

这是我最好的猜测.发布您在编译时遇到的错误会很有帮助.

This is my best guess. It would be helpful to post the errors you get on compile.

如果您正在使用 -all_load 链接器标志,请将其关闭.如果您的库要求您使用此选项,请尝试在需要它的特定库上使用 -force_load 选项.作为绝对的最后手段,从源代码构建您可以使用的库,重命名冲突符号.

If you are using the -all_load linker flag, turn it off. If your libraries require that you use this option, try using -force_load option on the specific libraries that require it. As an absolute last resort, build the libraries that you can from source, renaming colliding symbols.

以下问题可能会提供有关 all_load 问题的更多见解:

The question below might provide some more insight on the all_load issues:

静态库中的Objective-C类别

这篇关于Xcode 项目中使用的静态库之间的冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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