I'm starting with a blank iOS App project with the following code:
I have breakpoints on line 17 traitCollecitonDidChange, line 21 (print), line 31 and line 36.
The breakpoint on line 36 gets called but the breakpoints on 17, 21, 23 and 31 aren't getting called even though the print line on 21 prints. I can't work out why these breakpoints aren't working. I'm running in debug mode, have cleared DerivedData, reinstalled Xcode amongst other things...
Code Block class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() testMethodB() } override func traitCollectionDidChange(_ previousTraitCollection: UITraitCollection?) { print("called: traitCollectionDidChange") testMethodA() } func testMethodA() { } func testMethodB() { } }
I have breakpoints on line 17 traitCollecitonDidChange, line 21 (print), line 31 and line 36.
The breakpoint on line 36 gets called but the breakpoints on 17, 21, 23 and 31 aren't getting called even though the print line on 21 prints. I can't work out why these breakpoints aren't working. I'm running in debug mode, have cleared DerivedData, reinstalled Xcode amongst other things...