Facebook登录工作正常,但看起来在将我的
Xcode更新到版本9.3(9E145)后发生了一些事情.
它打开Facebook应用程序,我点击接受(或在第一次接受后继续),当返回我的应用程序时它崩溃.调试在AppDelegate上停止说EXC_BAD_ACCESS(代码= 1,地址= 0x0).
输出仅显示:
2018-04-03 17:06:14.668925-0300 MyApp[16461:9191788] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction 2018-04-03 17:06:14.917096-0300 MyApp[16461:9192005] TIC Read Status [7:0x0]: 1:57 2018-04-03 17:06:14.917148-0300 MyApp[16461:9192005] TIC Read Status [7:0x0]: 1:57 2018-04-03 17:06:21.768963-0300 MyApp[16461:9192094] TIC Read Status [8:0x0]: 1:57 2018-04-03 17:06:21.769653-0300 MyApp[16461:9192094] TIC Read Status [8:0x0]: 1:57 2018-04-03 17:06:22.098146-0300 MyApp[16461:9192439] TIC Read Status [9:0x0]: 1:57 2018-04-03 17:06:22.098528-0300 MyApp[16461:9192439] TIC Read Status [9:0x0]: 1:57
任何的想法?
解决方法
我有类似的问题,它足以将上面的代码片段添加到AppDelegate.
@available(iOS 9.0,*) func application(_ application: UIApplication,open url: URL,options: [UIApplicationopenURLOptionsKey : Any]) -> Bool { return FBSDKApplicationDelegate.sharedInstance().application(application,open: url,options: options) }