Thread 1: EXC_BREAKPOINT (code=1, subcode=0x18855e560) Error

I was making the cancel button of the memo screen in my iOS memo application. But, when I clicked the cancel button, Thread 1: EXC_BREAKPOINT (code=1, subcode=0x18855e560) error appeared. I used dismiss(animate: true, completion: nil) code

ComposeViewController Code

import UIKit

class ComposeViewController: UIViewController {
    @IBAction func close(_ sender: Any) {
        dismiss(animated: true, completion: nil). //this code was problem
    }
    
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

        //something more that is comment code '//'
}

Accepted Reply

pls give me a solution (O.O)

Replies

pls give me a solution (O.O)

pls give me a solution (O.O)

Please see tip 3 in Quinn’s Top Ten DevForums Tips.


This error suggests that your app has trapped, that is, detected a problem and deliberately crashed itself. It’s hard to offer any insight with more info. A good place to start is a crash report. Please post an Apple crash report, per the advice in Posting a Crash Report.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"