-2

ITMS-90116: Invalid Info.plist: To include the MKDirectionsApplicationSupportedModes key in the Info.plist, you must define the app binary as a routing app.

This is the email from App Store but I reupload the project removing that property from plist and I still get this error. My app does use MapKit but it doesn't provide routing in the Apple's mapview. I just redirect the user to Apple Maps with coordinates with this code:

func openMapsAppWithDirections(to coordinate: CLLocationCoordinate2D, destinationName name: String) {
    let options = [MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving]
    let placemark = MKPlacemark(coordinate: coordinate, addressDictionary: nil)
    let mapItem = MKMapItem(placemark: placemark)
    mapItem.name = name 
    mapItem.openInMaps(launchOptions: options)
}

What do you think I should focus on to solve this error?

4
  • This could help! IOS App Submission Routing App
    – Ampagi
    Commented Sep 28, 2022 at 11:47
  • I tried that but doesn't help
    – iPancake
    Commented Sep 28, 2022 at 13:21
  • 1
    Have you tried setting the options nil instead of saying that you are using it for driving. Commented Sep 29, 2022 at 11:32
  • I set the options nil and didn't get the error. For now, it seems like it is solved. Thanks
    – iPancake
    Commented Sep 30, 2022 at 8:51

1 Answer 1

1

Change the options to nil

mapItem.openInMaps(launchOptions: nil)

You are telling the app/Apple that you are using this for driving with

let options = [MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.