Cannot create __weak reference in file using manual refrence counting.

今天在编译项目的时候突然报了3个错,错误内容如下:

Cannot create __weak reference in file using manual refrence counting.

错误截图:

Cannot create __weak reference in file using manual refrence counting._第1张图片


解决方法:

点击工程启动文件 - TARGETS  - Build Settings - 在下方搜索框搜索weak  -  在Apple LLVM 7.1 - Language - Objective C选项下边 - 把Weak Reference in Manual Retain Release选项改成YES即可。

Cannot create __weak reference in file using manual refrence counting._第2张图片

你可能感兴趣的:(Cannot create __weak reference in file using manual refrence counting.)