我使用XCode 4.6.2,也是iOS开发新手。我试图安装AFNetworking库,但当我尝试使用它时出现以下错误:"The current deployment target does not support automated _weak references"
(当我尝试从URL显示图像时)在文件AFHTTPClient
和AFURLConnectionOperation
中。AFNetworking:当前的部署目标不支持自动_weak引用
我在我的小小第一个项目中没有任何弱的属性,但只有强大的属性。
任何建议将是伟大的!
谢谢
的确,部署目标默认设置为?到4.3。非常感谢您的回答! – Reveclair 2013-04-22 15:13:07
@Reveclaire:对__week属性使用__unsafe_unretained。看到这个http://mobappdevelopment.wordpress.com/2013/01/10/deployment-target-does-not-support-automated-weak/ – iCoder86 2013-07-30 09:40:19