My app has buttons to set
mapView.preferredConfiguration = MKStandardMapConfiguration() // and then mapView.preferredConfiguration = MKImageryMapConfiguration()
This works fine unless I zoom in with:
self.mapView.region = MKCoordinateRegion(MKMapRect(origin: MKMapPoint(self.coordinate), size: MKMapSize(width: 1000.0, height: 1000.0)))
Then I switch between configurations and quickly crash.
iOS 16.4. Happens in the simulator or on device.
Anyone else seen this?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I have a catalyst app that uses an MKMapView. If I build the app on Xcode 11.2 under Catalina all is well. If I build under Big Sur the map doesn't appear when running on Catalina.
In the log I see: "Could not instantiate class named MKModernCompassView because no class named MKModernCompassView was found; the class needs to be defined in source code or linked in from a library (ensure the class is part of the correct target)"
The map shows just fine on Big Sur.
Has anyone else seen this?
Here's the stack trace:
(
0 CoreFoundation 0x00007fff365a8b57 _exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6f2595bf objcexceptionthrow + 48
2 CoreFoundation 0x00007fff365a89b5 +[NSException raise:format:] + 189
3 UIFoundation 0x00007fff674a353d UINibDecoderDecodeObjectForValue + 360
4 UIFoundation 0x00007fff674a38bb UINibDecoderDecodeObjectForValue + 1254
5 UIFoundation 0x00007fff674a33c8 -[UINibDecoder decodeObjectForKey:] + 251
6 UIKitCore 0x00007fff770e4aab -[UIView initWithCoder:] + 1051
7 MapKit 0x00007fff71e84988 -[MKMapView initWithCoder:] + 96
8 UIFoundation 0x00007fff674a36c0 UINibDecoderDecodeObjectForValue + 747
9 UIFoundation 0x00007fff674a33c8 -[UINibDecoder decodeObjectForKey:] + 251
10 UIKitCore 0x00007fff770e20cd -[UIRuntimeConnection initWithCoder:] + 125
11 UIFoundation 0x00007fff674a36c0 UINibDecoderDecodeObjectForValue + 747
12 UIFoundation 0x00007fff674a38bb UINibDecoderDecodeObjectForValue + 1254
13 UIFoundation 0x00007fff674a33c8 -[UINibDecoder decodeObjectForKey:] + 251
14 UIKitCore 0x00007fff776e8ab7 -[NSCoder(UIIBDependencyInjectionInternal) decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 450
15 UIKitCore 0x00007fff770e08f3 -[UINib instantiateWithOwner:options:] + 1147
16 UIKitCore 0x00007fff770e7495 -[UIViewController loadViewFromNibNamed:bundle:] + 379
17 UIKitCore 0x00007fff76ee362d -[UIViewController loadView] + 177
18 UIKitCore 0x00007fff76e91484 -[UIViewController loadViewIfRequired] + 172
19 UIKitCore 0x00007fff76e913c5 -[UIViewController view] + 27
20 UIKitCore 0x00007fff76ed897d -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 1130
21 UIKitCore 0x00007fff76ed84ff -[UITabBarController transitionFromViewController:toViewController:] + 59
22 UIKitCore 0x00007fff76ed83a5 -[UITabBarController setSelectedViewController:] + 427
23 UIKitCore 0x00007fff76edfb9c -[UITabBarController setSelectedViewController:] + 109
24 UIKitCore 0x00007fff77419849 -[UITabBarController tabBarItemClicked:] + 518
25 UIKitCore 0x00007fff77153727 -[UIApplication sendAction:to:from:forEvent:] + 83
26 UIKitCore 0x00007fff772d0798 -[UITabBar sendAction:withEvent:] + 565
27 UIKitCore 0x00007fff77153727 -[UIApplication sendAction:to:from:forEvent:] + 83
28 UIKitCore 0x00007fff7715c245 -[UIControl sendAction:to:forEvent:] + 241
29 UIKitCore 0x00007fff7715a2f5 -[UIControl sendActionsForEvents:withEvent:] + 410
30 UIKitCore 0x00007fff772d248e -[UITabBar buttonUp:] + 113
31 UIKitCore 0x00007fff77153727 -[UIApplication sendAction:to:from:forEvent:] + 83
32 UIKitCore 0x00007fff7715c245 -[UIControl sendAction:to:forEvent:] + 241
33 UIKitCore 0x00007fff7715a2f5 -[UIControl sendActionsForEvents:withEvent:] + 410
34 UIKitCore 0x00007fff7715bcea -[UIControl touchesEnded:withEvent:] + 544
35 UIKitCore 0x00007fff7713b02f -[UIWindow sendTouchesForEvent:] + 1512
36 UIKitCore 0x00007fff7711767d -[UIWindow sendEvent:] + 4472
37 UIKitCore 0x00007fff7711595f -[UIApplication sendEvent:] + 364
38 UIKit 0x00007fff706da2ca -[UIApplicationAccessibility sendEvent:] + 85
39 UIKitCore 0x00007fff77113d11 _dispatchPreprocessedEventFromEventQueue + 7836
40 UIKitCore 0x00007fff76fe7c7b handleEventQueueInternal + 6303
41 UIKitCore 0x00007fff76fe5e66 handleHIDEventFetcherDrain + 130
42 CoreFoundation 0x00007fff3652cd52 CFRUNLOOPISCALLINGOUTTOASOURCE0PERFORMFUNCTION + 17
43 CoreFoundation 0x00007fff3652ccf1 CFRunLoopDoSource0 + 103
44 CoreFoundation 0x00007fff3652cb0b CFRunLoopDoSources0 + 209
45 CoreFoundation 0x00007fff3652b83a CFRunLoopRun + 927
46 CoreFoundation 0x00007fff3652ae3e CFRunLoopRunSpecific + 462
47 HIToolbox 0x00007fff35157abd RunCurrentEventLoopInMode + 292
48 HIToolbox 0x00007fff351577d5 ReceiveNextEventCommon + 584
49 HIToolbox 0x00007fff35157579 BlockUntilNextEventMatchingListInModeWithFilter + 64
50 AppKit 0x00007fff3379d039 DPSNextEvent + 883
51 AppKit 0x00007fff3379b880 -[NSApplication(NSEvent) nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
52 AppKit 0x00007fff3378d58e -[NSApplication run] + 658
53 AppKit 0x00007fff3375f396 NSApplicationMain + 777
54 AppKit 0x00007fff33a80e35 _NSApplicationMainWithInfoDictionary + 16
55 UIKitMacHelper 0x00007fff67657e00 UINSApplicationMain + 322
56 UIKitCore 0x00007fff76e3d1ff UIApplicationMain + 2130
57 WSPR Watch 0x000000010f7680fa WSPR Watch + 28922
58 libdyld.dylib 0x00007fff70401cc9 start + 1
)