Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift Webview Error - Audio presentation output context not supported by FigEndpointPicker

I have an issues with my swift application. I'm using UIWebview and I been getting the following error:

[AVFigEndpointPickerOutputContextImpl sharedAudioPresentationOutputContext]: Audio presentation output context not supported by FigEndpointPicker

and Thread eroor

Thread 4: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)

Here is my ViewController.swift code

import UIKit

class ViewController: UIViewController {


    @IBOutlet var webView: UIWebView!
    override func viewDidLoad() {
        super.viewDidLoad()
        //UserDefaults.standard.register(defaults: ["UserAgent" : "Chrome Safari"])
        // Do any additional setup after loading the view, typically from a nib.
        let url = URL(string:"http://example.com/")
        let urlReq = URLRequest(url:url!)

        webView.loadRequest(urlReq)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}
like image 492
Nathan Drake Avatar asked Jul 13 '17 18:07

Nathan Drake


1 Answers

I got the same issue with my simulator on Xcode 9 beta 3. The error detail here [AVFigEndpointPickerOutputContextImpl sharedAudioPresentationOutputContext]: Audio presentation output context not supported by FigEndpointPicker

The bug did not occur on the older version of Xcode. I will report this issue to Apple through Bug Reporter.

like image 108
giapnh Avatar answered Sep 29 '22 21:09

giapnh