本文介绍了“可达性.h";"Reachability.m在添加它们时给出了Apple Mach-o链接器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个iPhone应用程序,并且正在使用RestKit api连接到服务器.每当将 Reachability.m Reachability.h 添加到项目的第二个 UIViewController 中时,我都会遇到问题.我尝试在Xcode4中制作一个新的.m文件,现在在所有Tabst上都收到一个Apple macho-linker(id)错误.我将其添加到第一个 UIViewcontroller 正常工作,但是当我尝试将其添加到其他任何形式时,都会收到此错误.

I am creating an iPhone application, and I am using RestKit api to connect to the server. I am facing a problem whenever I add the Reachability.m and Reachability.h into the second UIViewController of the project. I tried making a new .m file in Xcode4 and now I get an Apple macho-linker (id) error on all tabst. I added it to the first UIViewcontroller it works normally, but when I try to add it to any other forms I receive this error.

推荐答案

通过仅导入"Reachability.h"而不是"Reachability.h"和"Reachability.m"来解决该问题

Solved it by importing ONLY "Reachability.h" not "Reachability.h" and "Reachability.m"

这篇关于“可达性.h";"Reachability.m在添加它们时给出了Apple Mach-o链接器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-15 06:36