解决的办法:在Build Settings--------->Aplle LLVM8.0 - Language - Objectibe-C------------->Weak Reference In Manual Retain Release 设置为YES。

iOS之报错“Cannot create __weak reference in file using manual reference counting”解决办法
原文:http://www.cnblogs.com/rglmuselily/p/6322243.html