点击顶部工程名 --> 左侧Target --> BuildSettings -->
Apple LLVM 7.1 -Language-Objective C 下面的 Weak References in Manual Retain Release 设置为YES.
然后common+B编译运行一下就可以了
本文介绍了解决Objective-C中弱引用配置问题的方法。通过在Xcode中设置Target的BuildSettings下Apple LLVM 7.1 - Language - Objective-C部分的Weak References in Manual Retain Release选项为YES,可以有效处理弱引用相关的问题。
点击顶部工程名 --> 左侧Target --> BuildSettings -->
Apple LLVM 7.1 -Language-Objective C 下面的 Weak References in Manual Retain Release 设置为YES.
然后common+B编译运行一下就可以了

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