在使用Reachability加入了h/m文件到工程中,编译出现如下错误,解决方法如下:
</pre><p></p><pre name="code" class="plain">
You can remove any of the two Reachability.m files from the compilation.
Go to Project Settings -> Build Phases -> Compile Sources -> Select Reachability.m -> Delete it.
This won't delete the file from the system, only from the compilation. The header will be used and the implementation won't be duplicated.
You can also rename one of the classes to avoid naming conflicts.