织物:数字不起作用 iOS 10

Fabric: Digits not working iOS 10

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

现在我收到以下错误

enqueueRequest:sessionStore:requestingUser:completion: Invalid parameter not satisfying: 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!)
 }