Using the new version Xcode 13.0 beta, exception throws when init apple map view in Simulator
self.mapView = MKMapView()
'NSInvalidArgumentException', reason: '-[MTLDebugDevice traceStream]: unrecognized selector sent to instance 0x7f946af781d0'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff203f6fa7 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff2019cbe7 objc_exception_throw + 48
2 CoreFoundation 0x00007fff20405b28 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00007fff203fb46b forwarding + 1412
4 CoreFoundation 0x00007fff203fd598 _CF_forwarding_prep_0 + 120
5 libMTLCapture.dylib 0x0000000105f65a0e libMTLCapture.dylib + 55822
6 libMTLCapture.dylib 0x0000000105f6425d libMTLCapture.dylib + 49757
7 VectorKit 0x00007fff3181cf7d -[MetalLayer initWithDevice:sRGB:] + 73
8 VectorKit 0x00007fff30fcd059 _ZNK2md6Device8newLayerEv + 179
9 VectorKit 0x00007fff315cf63d -[MDDisplayLayer createRenderTarget] + 110
10 VectorKit 0x00007fff31015cf9 -[VKMapView _createDisplayLayer] + 36
11 VectorKit 0x00007fff3101c8b9 -[VKMapView initShouldRasterize:inBackground:contentScale:auditToken:mapViewPurpose:] + 1575
12 MapKit 0x00007fff30b08f22 -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:] + 408
13 MapKit 0x00007fff30a226ee -[MKMapView _commonInitFromIB:gestureRecognizerHostView:locationManager:showsAttribution:showsAppleLogo:] + 1601
14 MapKit 0x00007fff30a23448 -[MKMapView initWithFrame:] + 251
15 UIKitCore 0x00007fff254abce5 -[UIView init] + 44
libc++abi: terminating with uncaught exception of type NSException
dyld4 config: DYLD_ROOT_PATH=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/jli1/Library/Developer/Xcode/DerivedData/erpclfvpzelgfubxbfquzihyqiou/Build/Products/Debug-iphonesimulator:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMTLCapture.dylib
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTLDebugDevice traceStream]: unrecognized selector sent to instance 0x7f946af781d0'
terminating with uncaught exception of type NSException
CoreSimulator 772.1 - Device: iPhone 12 Pro (E9648567-BCB1-4314-A315-3B0C8B142328) - Runtime: iOS 15.0 (19A5261u) - DeviceType: iPhone 12 Pro