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删除掉就可以了。
更新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删除掉就可以了。
相关文章推荐
- metronic/jquery uniform使用中checkbox渲染问题
- 简介BootStrap model弹出框的使用
- 第九章 改变 HTML 样式
- [置顶] 跟我学AngularJs:AngulaJs开发技巧汇总(持续更新)
- 第八章 innerHTML 属性
- JSON数据格式显示中文
- CSS---再谈行内元素和块级元素
- ButterKnife你需要知道的点
- 浅尝HTML5之canvas
- DIV+CSS布局
- 转载---CSS3实现曲线阴影和翘边阴影
- ReactNative警告:bind(): React component methods may only be bound to the component instance
- js调用webservice构造SOAP进行身份验证
- 【剑指offer-Java版】49把字符串转换为整数
- javascript实现延时显示提示框特效代码
- 【剑指offer-Java版】47不用加减乘除做加法
- [转载]最全前端资源汇集
- JS延时器提示框的应用实例代码解析
- 【剑指offer-Java版】46求 1 + 2 + 3 + ... + n
- 【剑指offer-Java版】45圆圈中最后剩下的数字