Ill*_*lep 10 iphone twitter facebook objective-c automatic-ref-counting
当我创建我的项目时,我支持它ARC,所以我的项目将支持iOS 4.3及更高版本.
现在我需要将Twitter和Facebook集成到它.这两家公司提供的Facebook和Twitter框架都不支持ARC.
大多数文件都有dealloc,并释放了它的变量.有人说废弃该项目并重做它禁用ARC.但是,我做不起,因为我完成了大部分工作.
我添加了FBConnect文件(其中有4个)并-fno-objc-arc按照本教程中的描述添加.我还是得到了
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
Run Code Online (Sandbox Code Playgroud)
我需要帮助,我再也不能重做了.
Fir*_*eer 20
确保为每个实现文件(.m文件)添加了-fno-objc-arc标志.
然后清理项目(项目菜单 - >清理)并再次构建.在课堂上这样做时,我有时不得不打扫并建造两次.看起来像一个小虫子.