2016-10-11 74 views
0

我使用数字进行手机号码OTP验证。在更新Xcode 7.3到Xcode 8.我不能得到OTP。面料:数字不工作iOS 10

现在,我收到以下错误

enqueueRequest:sessionStore:requestingUser:完成:无效的参数并不令人满意:sessionStore

谁能帮助我?

+0

@Droppy是其工作的xcode 7 – Aravi

+0

@Droppy在xcode的7我运行的iOS 9,在Xcode 8我运行的iOS 10. – Aravi

+0

确定,它可以是与iOS version.So一个问题,我怎样才能解决这个?有什么建议么? – Aravi

回答

1
//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!) 
} 
+0

非常感谢这真的帮了我 – Neen

+0

如果这个答案对你有帮助,那么投票赞成先生。 – danutha