0

尝试从我的应用程序连接到面对面时间,用户输入电子邮件 ID 或电话号码,但收到OSStatus 错误 -10814

连接到面对面时间的代码:

                  if let url = URL(string: "facetime://18883223846" ) {
                     if UIApplication.shared.canOpenURL(url) {
                        UIApplication.shared.open(url, options: [:],completionHandler:nil)
                     }
                  }

注意:
这里给出的数字是样本(即使朋友数量较少,如何测试面部时间)即使给出了正确的数字也会得到相同的错误

错误:

     -canOpenURL: failed for URL: "facetime://18883223846" - error: "The operation couldn’t be 
       completed. (OSStatus error -10814.)

UIApplication.shared.open(url, options: [:],completionHandler:nil)单独执行时出错

       Failed to open URL facetime://18883223846: Error Domain=NSOSStatusErrorDomain Code=-10814 " 
         (null)" UserInfo={_LSLine=247, _LSFunction=-[_LSDOpenClient 
           openURL:options:completionHandler:]}

信息清单:

      <key>LSApplicationQueriesSchemes</key>
          <array>
            <string>facetime</string>
          </array>
4

0 回答 0