dzep
dzep

Reputation: 695

Xcode5 : The app references non-public selectors in Payload/<AppName>.app/<AppName>: setAttribution:

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!

Upvotes: 8

Views: 10143

Answers (4)

Sandip Patel - SM
Sandip Patel - SM

Reputation: 3394

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"!!!!

Upvotes: 0

user821127
user821127

Reputation:

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.

Upvotes: 0

jowie
jowie

Reputation: 8068

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!

Upvotes: 12

SomeGuy
SomeGuy

Reputation: 9700

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

Upvotes: 0

Related Questions