简体   繁体   English

Facebook SDK(iPhone开发)

[英]Facebook SDK (iPhone dev)

I was having a lot of problems with the facebook SDK. 我在facebook SDK上遇到了很多问题。 I've managed through them whole except these two problems: 除了这两个问题之外,我已经完成了整个过程:

Facebook.m:52:9: error: existing ivar '_sessionDelegate' for unsafe_unretained property 'sessionDelegate' must be __unsafe_unretained [4] Facebook.m:52:9:错误:对于unsafe_unretained属性'sessionDelegate',现有的ivar'_sessionDelegate'必须是__unsafe_unretained [4]

And the second: 第二个:

FBDialog.m:47:13: error: existing ivar '_delegate' for unsafe_unretained property 'delegate' must be __unsafe_unretained [*4] FBDialog.m:47:13:错误:对于unsafe_unretained属性'delegate',现有的ivar'_delegate'必须是__unsafe_unretained [* 4]

What could be the problem? 可能是什么问题呢?

This has nothing to do with Facebook per se. 这与Facebook本身无关。 This is just about how to declare an id using the Automatic Reference Counting memory model. 这是关于如何使用自动引用计数内存模型声明id。 You can set these to not use ARC in the Build Phases, Compile Sources for your target by adding the flag -fno-objc-arc @Rayfleck 您可以通过添加标志-fno-objc-arc @Rayfleck将这些设置为不在构建阶段中使用ARC,为目标编译源代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM