同一应用程序中的 ASIHTTPRequest 和 ShareKit 有两个可达性文件

发布于 2025-01-02 01:45:27 字数 150 浏览 4 评论 0原文

我正在创建一个同时使用 ASIHTTPRequest 和 ShareKit 的 iOS 应用程序。两个 API 都有 Reachability.h 和 Reachability.m 文件...因此这会产生 Mach-O 重复错误。有没有特殊的方法可以避免这种情况?

谢谢

I am creating an iOS app which uses both ASIHTTPRequest and ShareKit. Both APIs have a Reachability.h and Reachability.m file... thus this is creating a Mach-O duplication error. Is there a special way to avoid this?

Thanks

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

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

发布评论

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

评论(1

多孤肩上扛 2025-01-09 01:45:27

我不久前遇到了这个问题,并找到了一个简单的解决方案。

你有两个选择。

1)如果两个Reachability集的版本相同,则可以只删除一组。我认为您甚至不必更改任何标题。

2) 如果版本不同,请将一组 Reachability 文件重命名为“MyReachability”。显然,您还必须清除对重命名的类的所有引用。

希望有帮助!

I had this issue a little while back and figured out an easy fix.

You have two options.

1) If the versions of the two Reachability sets are the same, you could just delete one set. I don't think you should even have to change any headers.

2) If the versions are different, rename one set of Reachability files something like "MyReachability". Obviously you will have to clean up all references to the renamed class as well.

Hope that helps!

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