Xcode 5中苹果对多个系统框架及相关类库进行了改进。之前建立的项目在Xcode 5中重新编译会产生一些新问题。
JosnKit是常用的轻量级Josn解析类,在Xcode 5中:
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;
一行会提示如下警告:
warning: bitmasking for introspection of Objective-C object pointers is strongly discouraged
虽然不影响使用,但有完美编译强迫症的朋友可以无法这个黄色感叹号。援引GitHub上一篇帖子,有如下修改方法:
#pragma clang diagnostic push
#pragma clang diagnostic ignored"-Wdeprecated-objc-pointer-introspection"
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object) &0x1)) ? YES : NO;
#pragma clang diagnostic pop
转自http://blog.csdn.net/vividloves/article/details/12186191