objective-c - Xcode 7.3 无法使用手动引用计数在文件中创建 __weak 引用

更新到 Xcode 7.3 后,在 pod 文件中抛出错误 Cannot create __weak reference in file using manual reference count。有人解决了这个问题吗?

最佳答案

Build Settings -> Apple LLVM 7.1 - Language - Objective C -> Weak References in Manual Retain Release 设置为 YES

取自 Apple Developers Forums - Xcode 7.3b4, non-arc, cannot create __weak reference .

https://stackoverflow.com/questions/36147625/

相关文章:

ios - NSOperation 和 NSOperationQueue 工作线程与主线程

ios - 为什么masksToBounds = YES会阻止CALayer阴影?

ios - 如何使用 UISegmentedControl 切换 View ?

objective-c - ARC : strong or retain? 的@property 定

objective-c - 如何向 objc_exception_throw 添加断点?

ios - 在 UIView 上设置 alpha 会在其 subview 上设置不应该发生的 alp

iphone - 如何为 View 或图像沿弯曲路径的移动设置动画?

ios - 你如何以编程方式从 View Controller 中画一条线?

iphone - UITableView 单元格中的 UISwitch

iphone - 如何找到 malloc "double free"错误的原因?