未捕获的异常'NSInvalidArgumentException',原因:'+ [RTCPeerConnectionFactory initializeSSL]:无法识别的选择器已发送给类“ 0x ...”

时间:2019-05-14 17:18:48

标签: ios swift webrtc

  override func loadView() {
     let configuration = WKWebViewConfiguration()
     let controller = WKUserContentController()
     configuration.userContentController = controller

     let webView = WKWebView(frame: CGRect.zero, 
 configuration:configuration)


    // apply shim
    WKWebViewWebRTCShim(webView: webView, contentController: 
controller);




    let request = NSURLRequest(url: 
NSURL(string:"https://www.google.com")! as URL)
    webView.load(request as URLRequest)



    super.loadView()
    view.addSubview(webView)


    }

我是stackoverflow的新手,我正在开发具有WKWebViewWebRTCShim实现的iOS应用,但是当我尝试对其进行调试时,出现此错误。我认为所有框架都实现得很好。此代码有问题吗?

这是堆栈

***首先抛出调用堆栈: (0x1a6adc518 0x1a5cb79f8 0x1a69fe2c4 0x1a6ae1d60 0x1a6ae39fc 0x1006b32c8 0x1006ba420 0x1006b9c80 0x1006b9614 0x1006b9e6c 0x1d292b5ac 0x1d292bcfc 0x1d2f09b3c 0x1d2f0a0e4 0x1d2f1a9c0 0x1d2ecd838 0x1d2ed2f10 0x1d2797104 0x1d279f69c 0x1d2796d88 0x1d2797678 0x1d27959c4 0x1d279568c 0x1d279a1cc 0x1d279afb0 0x1d279a084 0x1d279ed84 0x1d2ed1518 0x1d2acdf0c 0x1a9456d44 0x1a9460754 0x1a945ff5c 0x101024c74 0x101028840 0x1a94910bc 0x1a9490d58 0x1a9491310 0x1a6a6e2bc 0x1a6a6e23c 0x1a6a6db24 0x1a6a68a60 0x1a6a68354 0x1a8c6879c 0x1d2ed4b68 0x1006b94ac 0x1a652e8e0) libc ++ abi.dylib:以类型为NSException的未捕获异常终止

0 个答案:

没有答案