A fun real world problem I am trying to debug.
iPhone XS crashes when the Map on the MyLocations App is accesed.
This may be an Apple MapKit problem with a specific device. There is no issue when run on an iPhone 6S for example or run on the simulator.
Steps to reproduce the problem:
Unzip download file
In Xcode open “iOS_Apprentice_v7.0/my-locations/Source Code/29-Maps/chapter-29-final/MyLocations.xcodeproj”
Build and run on a iPhone XS (not on the simulator as there is no issue when run on the simulator)
Tag to add a location to the app
At the bottom right of the screen tap “Map”
Xcode indicates the line the app terminates on is “mapView.addAnnotations(locations)” in MapViewController.swift
The crash log on the iphone indicates the app crashed deep in the Apple framework
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000100aee4bc 0x1007fc000 + 3089596
Crash logs attached.
2 libobArchive.zip (1.1 MB)
jc.A.dylib 0x00000001f972dc64 objc_allocateClassPair + 156