遇见的错误:
第一次运行报的错误:error: No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=x86_64, VALID_ARCHS=i386)
然后我就去 targets ->build setting 下的 Build Active Architecture Only 设置 NO
改完后又报错:
/Users/lanouhn/Desktop/shiku_im_for_share_ok/shiku_im/Extensions/Reconnect/XMPPReconnect.m:60:34: Typedef redefinition with different types ('SCNetworkConnectionFlags' (aka 'unsigned int') vs 'enum SCNetworkReachabilityFlags')
然后就感觉 第一步不靠谱
所以又查找了一些资料http://my.oschina.net/kings0527/blog/509073