相关疑难解决方法(0)

如何在iOS 10上使用Facebook iOS SDK

我正在尝试使用Xcode 8来构建一个使用Swift 3登录Facebook的应用程序.当我切换回iOS模拟器9.3时,它可以工作.在iOS 10中,我收到此错误:

""fbauth2:/" The operation couldn’t be completed. (OSStatus error -10814.)"
Run Code Online (Sandbox Code Playgroud)

Optional(Error Domain=com.facebook.sdk.login Code=308 "(null)")
Run Code Online (Sandbox Code Playgroud)

有人有解决方案吗?

注1:

调试后,这个问题是FBSDK无法更新expect_challange.功能SecItemUpdate里面security.framework不行.这是IOS 10的问题

ios facebook-ios-sdk swift ios10

103
推荐指数
2
解决办法
4万
查看次数

Google登录不支持使用Xcode 8 beta 6的iOS 10 Beta 7

我在应用程序商店中有一个应用程序非常好,直到iOS 10的前几个测试版(我不确定哪一个).它在iOS 9.3上也能完美运行.

但是我没有在iOS 10 beta 7上测试,谷歌登录完全被破坏了.我使用的是最新版本GIDSignIncocoapods.

这是我的代码:

[GIDSignIn sharedInstance].clientID = [[ParseFetcher sharedInstance] getRandomParseK];
[GIDSignIn sharedInstance].delegate = sharedInstance;
[GIDSignIn sharedInstance].uiDelegate=sharedInstance;
[GIDSignIn sharedInstance].scopes = [NSArray arrayWithObjects:@"https://www.googleapis.com/auth/youtube",@"https://www.googleapis.com/auth/youtube.force-ssl", nil];
[[GIDSignIn sharedInstance] signIn];
Run Code Online (Sandbox Code Playgroud)

这就是它在设备上的样子:

截图1

它只是像这样停滞不前.

如果我点击顶部的刷新按钮,它会尝试刷新并永远卡在这里.

截图2

单击完成按钮会将我发回我的应用程序.

控制台中没有记录错误.

但是,当我在iOS 10模拟器上运行相同的应用程序时,safari view controller甚至都没有打开.什么都没发生.但是控制台记录了这个冗长的冗长的东西,其中以下似乎是最"有用"的东西,但我不知道什么是错的:

nw_endpoint_resolver_receive_report [8 i.ytimg.com:443 in_progress resolver (satisfied)] received child report:[8.1 206.248.149.148:443 waiting path (satisfied)]
2016-08-22 23:19:51.531570 XXXXAPPNAMEXXXXXXX[4561:195631] [] nw_connection_endpoint_report [8.1 206.248.149.148:443 waiting path (satisfied)] reported event path:satisfied
2016-08-22 23:19:51.531909 XXXXAPPNAMEXXXXXXX[4561:195631] [] nw_endpoint_proxy_handler_should_use_proxy Looking up proxy for hostname: …
Run Code Online (Sandbox Code Playgroud)

xcode objective-c ios google-signin ios10

12
推荐指数
2
解决办法
5985
查看次数

当alpha设置为0时,iOS10 SFSafariViewController无法正常工作

我正在使用SFSafariViewController在我的应用程序中获取用户的cookie.这是我的代码:

SFSafariViewController *safari = [[SFSafariViewController alloc]initWithURL:[NSURL URLWithString:referrerUrl] entersReaderIfAvailable:NO];
    safari.delegate = self;
    safari.modalPresentationStyle = UIModalPresentationOverCurrentContext;
    safari.view.alpha = 0.0;
    safari.view.hidden = true;
    [self dismissViewControllerAnimated:false completion:nil];
    NSLog(@"[referrerService - StoreViewController] presenting safari VC");
    [self presentViewController:safari animated:false completion:nil];
Run Code Online (Sandbox Code Playgroud)

这在iOS 9上运行良好.但在iOS 10上,似乎SF控制器不起作用(它也阻止了我当前的上下文 - 恰好是另一个UIWebView).

任何人都可以建议隐藏SFSafariViewController的替代方法?

cookies objective-c install-referrer sfsafariviewcontroller ios10

7
推荐指数
2
解决办法
5343
查看次数