I'm currently working on native plugin for Unity Engine. So there's my custom c++/objective-c++ code running inside Unity Editor process. Breakpoints are working just fine, but when assertion failure happens Editor just crashes and Xcode says Finished running Unity
instead of stopping debugger.
I have 2 cases when there may be assertion failure:
- Assertion in my own c++/objective-c++ code.
- Xcode validation (e.g. Metal API Validation)
In both cases Editor just crashes, Xcode says Finished running Unity
, then Unity Crash Reporter appears, and finally macOS crash reported appears.
To start Unity Editor from Xcode I followed this guide: https://docs.unity3d.com/Manual/XcodeFrameDebuggerIntegration.html (Capturing a frame from Unity Editor with Xcode
section)
How can I make Xcode/Unity Editor stop execution and show line/assertion info when assertion failure happens?