3 ms·
> Note that this improved experience is only available when the app’s entry point is written in Swift (i.e. your app delegate with the @UIApplicationMain/@NSApp
by jarjoura 9y ago
> Note that this improved experience is only available when the app’s entry point is written in Swift (i.e. your app delegate with the @UIApplicationMain/@NSApplicationMain attribute).
Interesting requirement, is this because it requires a predictable entry codepath in order to work?
- eridius 9y agoI'm guessing because it has to insert code into main() to set up the coordination with Xcode. EDIT: Ok, I looked into it. There's no code inserted into main(). The way this works is Xcode sets up an internal breakpoint on _swift_runtime_on_report, which is an empty function that is called during fatal errors specifically to allow Xcode to break on it. I don't know why this requires main() to be written in Swift.
- nielsbot 9y agoand/or some type of custom exception/signal handler?
- deleted 9y ago[deleted]