消除Xcode 5中JosnKit类库的bit masking for introspection of objective-c 警告
2013-09-30 10:26
531 查看
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
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
相关文章推荐
- 消除Xcode 5中JosnKit类库的bit masking for introspection of objective-c 警告
- 消除Xcode 5中JosnKit类库的bit masking for introspection of objective-c 警告
- Bit masking for introspection of Objective-C object pointer is strongly discounraged
- Bitmasking for introspection of Objective-C object pointers
- Bitmasking for introspection of Objective-C object pointers i
- Swift: 消除警告-Scene is unreachable due to lack of entry points and does not have an identifier for
- Struts2 启动时报警告:no default parameter defined for result of type json
- does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE
- Xcode7 *** does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_
- Write Code As If You Had to Support It for the Rest of Your Life
- 消除Xcode iOS项目的警告
- xcode 6 swift 调用 objective-c 类库 桥接文件的命名
- 问题人生[20160112] You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)
- IOS 打包All object files and libraries for bitcode must be generated from Xcode Archive or Install bui
- You must rebuild it with bitcode enabled (Xcodesetting ENABLE_BITCODE), obtain an updated library f
- ios【解决方法】You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE)
- 编译出现:failed to compile bitcode for ***: Debug: SDK path: /Applications/Xcode.app/Contents
- Memento(Chapter 23 of Pro Objective-C Design Patterns for iOS)
- xCode中去除“Implicit declaration of function 'setxattr' is invalid in C99” 警告
- I took time for preliminary study of the lua and php, it's too difficlt to squeeze time for me