A sample application for reporting a crash generated by the Swift compiler.
- Open the attached sample project.
- Select the
Debug
scheme and run the application on an iOS version prior to iOS 16.0 (e.g. iOS 15.4) - Observe that after the application finishes launching some logs are printed to the console and no crash occurs.
- Now select the
Release
(orDebug Crash
) scheme and run the application again, also on an iOS version prior to iOS 16.0. - Observe that the application crashes when calling the
CrashProducer.stringType(_:)
static method.