Xcode5 : The app references non-public selectors i

2019-01-18 13:10发布

Today, I tried to submit an update to my app to the store using Xcode 5 and it gave the the warning The app references non-public selectors in Payload/<AppName>.app/<AppName>: setAttribution:. Before, it worked just fine, the last update was on August.

I'm using Facebook SDK 3.2 library. What could be the problem? Thanks!

4条回答
小情绪 Triste *
2楼-- · 2019-01-18 13:53

Try downloading the latest SDK version, Facebook says they have addressed this https://developers.facebook.com/bugs/273730516072926

查看更多
ら.Afraid
3楼-- · 2019-01-18 13:57

Apple will give warnings for any methods or variables if those are declared with same name in our application. But if those warnings are not critical then we don't have to worry about it. After all we can also provide a name which are meaningful to read :-)

We can check these kind of warnings threat with some utility apps like AppScanner. It will display warnings in red if we have to address it before submitting app otherwise we can neglect all other warnings.

查看更多
SAY GOODBYE
4楼-- · 2019-01-18 14:04

Also discovered that if you replace fbProxy.userInfo.id in your code with [fbPoxy.userInfo objectForKey:@"id"] then the warnings will go away.

Naughty Facebook for using a keyword as a property name!

查看更多
beautiful°
5楼-- · 2019-01-18 14:11
To remove warning "the app references non-public selectors in payload: birthday",

While getting FBUser detail from (NSDictionary<FBGraphUser>*)user

instead of using 
NSString *FBDoB = user.birthday;

Use this:
NSString *FBDoB = [user valueForKey:@"birthday"];

Its Done, You will get the message "Validation Successful"!!!!
查看更多
登录 后发表回答