测试机更新到ios9.3后xcode不得不更新了。下载了xcode7.3后,运行项目后报错,只好查了查,最终找到了结果
更新7.3后编译可能会出现这个错。
官方的回答在这里:https://forums.developer.apple.com/thread/38934
还有一个结果如下:
- 1 doesn’t apply to MRR, because you just don’t retain the variable anyway.
- 2 doesn’t apply to MRR either, because the runtime support is in GC and ARC, which you’re not using.
- 简而言之,现在的runtime和GC中会处理这种情况下的引用。不要再指明__weak了。所以把__weak删除掉就可以了。