Falling back to loading access token from NSUserDefaults because of simulator bug

偶尔善良 提交于 2019-12-18 13:53:14

问题


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?


回答1:


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.




回答2:


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];




回答3:


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



来源:https://stackoverflow.com/questions/41033776/falling-back-to-loading-access-token-from-nsuserdefaults-because-of-simulator-bu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!