objective-c - AF网络 : the current deployment target does not support automated _weak references

标签 objective-c afnetworking

我使用的是 XCode 4.6.2,也是 iOS 开发的新手。我正在尝试安装 AFNetworking 库,但在尝试使用它时出现以下错误:"The current deployment target does not support automated _weak references"(当我尝试在文件 AFHTTPClientAFURLConnectionOperation 中显示来自 URL 的图像。

在我的第一个小项目中,我没有任何弱点,只有强点。

任何建议都会很棒!

谢谢

最佳答案

只有 iOS 5.0 及更高版本才支持弱引用。如果您的部署目标设置为 4.3,则您不能使用 weak。错误可能来自 AFNetworking。

如果可以或不使用 AFNetworking,请停止对 iOS 4.3 的支持。

关于objective-c - AF网络 : the current deployment target does not support automated _weak references,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16150091/

相关文章:

ios - for循环结束后的调用方法

ios - 如果快速滑动,UIPageViewController didFinishAnimating 不会被调用

iOS-MagicalRecord/AFNetworking/NSFetchedResultsController-后台重新同步过程导致永久挂起

ios - 如何通过 AFNetworking 列出 ftp 的目录内容

iOS UILabel 位置在调用 setText 时重置

ios - 如何将 key 添加到NSMutableArray

objective-c - 覆盖已弃用的 UIKit 方法——我可以收到警告吗?

objective-c - restkit vs afnetworking vs mknetworkkit vs nsurlconnection 有什么区别

objective-c - AFNetworking 证书错误

ios - AFNetworking Pod 安装不工作