iOS常见问题之 cannot create __weak reference in file using manual reference counting
2016-10-24 14:14
591 查看
更新7.3后编译可能会出现这个错。
官方的回答在这里:https://forums.developer.apple.com/thread/38934
This issue behaves as intended based on the following: We are in the process of implementing weak references in all Objective-C language modes. Since “__weak” has historically been ignored in non-ARC (and non-GC) language modes, we’ve added this error to point out places where the semantics will change in the future. Please update your bug report to let us know if this is still an issue for you.
另外一个回答提到:
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了。所以删除掉就可以了。
官方的回答在这里:https://forums.developer.apple.com/thread/38934
This issue behaves as intended based on the following: We are in the process of implementing weak references in all Objective-C language modes. Since “__weak” has historically been ignored in non-ARC (and non-GC) language modes, we’ve added this error to point out places where the semantics will change in the future. Please update your bug report to let us know if this is still an issue for you.
另外一个回答提到:
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了。所以删除掉就可以了。
相关文章推荐
- iOS之报错“Cannot create __weak reference in file using manual reference counting”解决办法
- iOS-RAC: Cannot create __weak reference in file using manual reference counting
- 【iOS开发】Xcode 8.0 cannot create __weak reference in file using manual reference counting
- iOS之报错“Cannot create __weak reference in file using manual reference counting”解决办法
- Cannot create __weak reference in file using manual reference counting
- Xcode 7.3 cannot create __weak reference in file using manual reference counting
- 更新mac系统和更新到Xcode7.3版本出现的: cannot create __weak reference in file using manual reference counting
- Xcod7.3 cannot create __weak reference in file using manual reference counting
- Xcode 7.3 cannot create __weak reference in file using manual reference counting
- Cannot create __weak reference in file using manual reference counting
- Xcode 7.3 cannot create __weak reference in file using manual reference counting解决方法
- Xcode 7.3 cannot create __weak reference in file using manual reference counting
- Xcode 7.3 cannot create __weak reference in file using manual refrence counting
- 关于 Cannot create __weak reference in file using manual reference counting及配置ReactiveCocoa
- 报错:Xcode 7.3 cannot create __weak reference in file using manual reference counting
- Cannot create __weak reference in file using manual refrence counting.
- 升级Xcode7.3出现Cannot create __weak reference in file using manual reference counting 解决方法:
- 报错:Xcode 7.3 cannot create __weak reference in file using manual reference counting
- Cannot create __weak reference in file using manual refrence counting.
- Xcode 7.3 cannot create __weak reference in file using manual reference counting