When you create a map view using MKMapView and add an overlay using MKOverlay, you might come across the unexpected crash from the hosting application while using Reveal to inspect the map view.
Problem
This problem is caused by an underlying issue in Xcode 12's Metal API validation setting. We have filed feedback with Apple reporting this issue (FB8813533), and will update this article when a fix is released.
Workarounds
If you are experiencing this issue, you can work around the problem by disabling Xcode's Metal API validation by following these steps:
- In your iOS project, go to Product → Scheme → Edit Scheme
- Select the Run target
- Select the Diagnostics tab
- Ensure that Metal: API Validation checkbox is unchecked
- Re-run your iOS and inspect it using Reveal - your app should no longer crash.