'Build Settings' --'Apple LLVM compiler 4.1 - Preprocessing' -'Preprocessor Macros' --'Debug' add
'OS_OBJECT_USE_OBJC_RETAIN_RELEASE=0' and 'DEBUG=1'
the same place
'Release' add 'OS_OBJECT_USE_OBJC_RETAIN_RELEASE=0' and 'NDEBUG'
Maybe also to add, but im not sure that, you can try as in the follows if the problem is still.
'Build Settings' --'Apple LLVM compiler 4.1 - Language' - 'Other C Flags' --'Release' --
'-DNS_BLOCK_ASSERTIONS=1'
https://github.com/square/SocketRocket/pull/55
本文介绍如何通过修改BuildSettings中的预处理宏和C编译标志来解决SocketRocket项目的编译警告。具体步骤包括为Debug配置添加OS_OBJECT_USE_OBJC_RETAIN_RELEASE=0和DEBUG=1宏,为Release配置添加OS_OBJECT_USE_OBJC_RETAIN_RELEASE=0和NDEBUG宏,并尝试额外添加-DNS_BLOCK_ASSERTIONS=1标志。

1万+

被折叠的 条评论
为什么被折叠?



