Tuesday, 19 November 2019

libc++abi.dylib segue error with uncaught exception of type NSException

I have three view controllers in total. I pressed Cntrl on the first view controller and created a segue to the second one on the bottom right (haven't tested the top right one yet). Storyboard is below:

enter image description here

The description of the second segue from the bottom is:

enter image description here

I have placed the segues inside an the IBAction for the button at the bottom of the first view controller. The code is as below:

class ViewController: UIViewController {

    private lazy var app = ProjectApp()

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
    }

    @IBAction func start_test(_ sender: Any) {
        if app.is_facial_analysis_completed() {
            DispatchQueue.main.async() {
                self.performSegue(withIdentifier: "home_to_quiz", sender: self)
            }
        } else {
            DispatchQueue.main.async() {
                self.performSegue(withIdentifier: "home_to_vision", sender: self)
            }
        }
    }

}

Not really sure as to why I am getting this error:

libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

I could paste the trace, if someone needs it.



from libc++abi.dylib segue error with uncaught exception of type NSException

No comments:

Post a Comment