【发布时间】:2012-01-31 20:58:06
【问题描述】:
当我创建我的项目时,我让它支持ARC,所以我的项目将支持 iOS 4.3 及更高版本。
现在我需要将 Twitter 和 Facebook 集成到其中。公司提供的 Facebook 和 Twitter 框架都不支持ARC。
大部分文件都有dealloc,并释放了它的变量。有人说要废弃该项目并重做它以禁用 ARC。但是,我负担不起,因为我已经完成了大部分工作。
我添加了FBConnect 文件(其中有 4 个)并添加了-fno-objc-arc,如this tutorial 中所述。我还是得到了
file://localhost/Users/illepmorgan/Documents/Projects/illep/untitled%20folder/alphaproject/alphaproject/FBRequest.m: error: Automatic Reference Counting Issue: Existing ivar '_delegate' for unsafe_unretained property 'delegate' must be __unsafe_unretained
我需要帮助,我不能再这样做了。
【问题讨论】:
-
您确定您正确地遵循了指南吗?仔细检查您是否已将标志添加到所有文件中。
-
是的,我做到了。我又试了一遍。我收到了我在上面添加的消息。
-
有谁知道如何解决这个问题?
标签: iphone objective-c facebook twitter automatic-ref-counting