繁体   English   中英

结构:数字无法正常运行iOS 10

[英]Fabric: Digits not working iOS 10

我使用Digits进行手机号码OTP验证。 将Xcode 7.3更新为Xcode 8后,我无法获得OTP。

现在我得到以下错误

enqueueRequest:sessionStore:requestingUser:completion:无效参数不满足:sessionStore

谁能帮我?

 //just paste this 
 let authButton = DGTAuthenticateButton(authenticationCompletion: { (session, error) in
        if (session != nil) {
            // TODO: associate the session userID with your user model
            let message = "Phone number: \(session!.phoneNumber)"
            let alertController = UIAlertController(title: "You are logged in!", message: message, preferredStyle: .alert)
            alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: .none))
            self.present(alertController, animated: true, completion: .none)
        } else {
            NSLog("Authentication error: %@", error!.localizedDescription)
        }
    })
    authButton?.center = self.view.center
    self.view.addSubview(authButton!)
 }

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM