该应用程序引用ID中的非公开选择器(Facebook SDK iOS) [英] The app references non-public selector in id (Facebook SDK iOS)

查看:172
本文介绍了该应用程序引用ID中的非公开选择器(Facebook SDK iOS)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 应用程序在MyApp中引用非公开选择器: id 

此警告可能会从Apple AppStore的验证中拒绝我的应用程序。



我的应用程序正在使用Facebook SDK iOS 3.1.1(也尝试使用3.1)

解决方案

发生在iOS SDK的Facebook SDK中。



应用程序加载程序禁止使用任何FBGraphUser相关类的变量id(也可能是其他变量,没有测试) - 例如:

  id< FBGraphUser>朋友
id< FBGraphUserExtraFields>用户

截至2013年1月,Facebook通知此问题: 错误报告



解决方法现在是使用这些:

  [user objectForKey:@id] 
[friend objectForKey:@ id]

而不是 user.id friend.id ,如不同的Facebook样本所示。


I was having this warning when submitting my app with Application Loader.

The app references non-public selector in MyApp : id

This warning can potentially reject my app from Apple AppStore's validation.

My app is using Facebook SDK iOS 3.1.1 (also tried with 3.1)

解决方案

This problem happens because of the Facebook SDK for iOS.

Application Loader forbids the use of the variable "id" from any FBGraphUser related class (maybe others variables too, didn't test) - e.g. :

id<FBGraphUser> friend
id<FBGraphUserExtraFields>user

Facebook is informed about this problem as of january 2013 : Bug Report

The workaround for the moment is to use these:

[user objectForKey:@"id"]
[friend objectForKey:@"id"]

instead of user.id and friend.id as shown in the different Facebook samples.

这篇关于该应用程序引用ID中的非公开选择器(Facebook SDK iOS)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆