CoreLocation and Mapkit were used together.
Before these, necessary installation and permissions were obtained. CoreLocation.framework and MapKit.
framework were called from Frameworks.
“Privacy – Location When In Use Usage Description” was added to info.plist for CoreLocation.
Import MapKit, import CoreLocation were added in the viewController we will use.