Falling back to loading access token from NSUserDe

2020-02-26 14:25发布

Xcode log show the above error while running in Xcode 8.1, ios 10.1. Is there any problem or should I ignore and continue?

3条回答
放荡不羁爱自由
2楼-- · 2020-02-26 14:31

I have this problem, too. It seems to be caused by an the Facebook SDK's Login Access Token. It caches just fine on a real device, but not on the simulators. Try running the app from a physical device.

查看更多
爷、活的狠高调
3楼-- · 2020-02-26 14:44

You can ignore this warning, it's hard coded in the FacebookSDK when using the iOS Simulator. The SDK does contain a bug though which prevents the simulator from caching the access token.

You can fix this by adding the following line:

key = [NSString stringWithFormat:@"%@_fix", key];

in FBSDKKeychainStore.m:94 and FBSDKKeychainStore.m:135 just before:

[[NSUserDefaults standardUserDefaults] setObject:value forKey:key];

查看更多
狗以群分
4楼-- · 2020-02-26 14:50

I had the same problem. I tried to run in real device and this show error with OAuth Login Then I just turn OAuth Login on and everything works well Turn on OAuth Login

查看更多
登录 后发表回答