Xcode 5中苹果对多个体系框架及相干类库进行了改进。之前建树的项目在Xcode 5中从头编译会产生一些新题目。
JosnKit是常用的轻量级Josn解析类,在Xcode 5中:
BOOL workAroundMacOSXABIBreakingBug = (JK_EXPECT_F(((NSUInteger)object)
&0 x1)) ? 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)
&0 x1)) ? YES : NO;
#pragma clang diagnostic pop
打消Xcode 5中JosnKit类库的bit masking for introspection of objective-c
警告
时间: 2024-11-05 12:15:14