您的位置:首页 > Web前端

Xcode 7.3 cannot create __weak reference in file using manual reference counting解决方法

2016-04-27 10:04 585 查看
测试机更新到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删除掉就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: