Opening Maps.app for directions fails when Maps.app not launched

Originator:futuretap
Number:rdar://41794584 Date Originated:04-Jul-2018 12:13 AM
Status:Duplicate/41345465/Closed Resolved:
Product:iOS + SDK Product Version:12.0 beta 3
Classification:Serious Bug Reproducible:Always
 
Summary:
When using -[MKMapItem openInMapsWithLaunchOptions:] or +[MKMapItem openMapsWithItems:launchOptions:] to launch the Maps app to show directions to the specified map item, Maps.app launches but doesn't show any directions.
It only works if Maps.app was already launched before.

Steps to Reproduce:
- Make sure Maps.app wasn't launched before or kill it from the app switcher.
- Construct an MKMapItem and call:

[mapItem openInMapsWithLaunchOptions:@{MKLaunchOptionsDirectionsModeKey: MKLaunchOptionsDirectionsModeDriving}];

Expected Results:
Maps.app should launch and display directions to the specified map item.

Actual Results:
Maps.app launches but does nothing else.

Version:
12.0 beta 3

Notes:
Regression from iOS 11.

Comments

Resolved in iOS 12 beta 4

Apple

Engineering has determined that your bug report is a duplicate of another issue and will be closed.

My response

While I don't have the time to create, sync and upload a sysdiagnose, you can easily reproduce this using our Where To? app. For your convenience, I'm attaching a promo code for a free download from the App Store:

[redacted]

Install the app, select any place, tap the directions button and select the Maps app for directions. This will be much more convenient since you can then debug the issue right away.

Apple

Please reproduce the issue, trigger a sysdiagnose and attach the log file to your bug report. Also, if the bug can be seen visually, please include a screenshot and or a video of the issue.

(…)


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!