Set Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release
toYES
.
去build settings 输入weak ,搜索出来Apple LLVM 7.1 - Language - Objective C -> Weak
,然后把NO改为YES即可。
原文链接http://stackoverflow.com/questions/36147625/xcode-7-3-cannot-create-weak-reference-in-file-using-manual-reference-counting
或者去target找到你的保错的文件,然后后面写上"-fobjc-arc"即可