New document using UIDocumentBrowserViewController in Xcode 9 beta 2 not working

Originator:howard.lovatt
Number:rdar://33149381 Date Originated:
Status:Open Resolved:
Product:iOS 11 beta Product Version:
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
I am having problems with UIDocumentBrowserViewController Bug in Xcode 9 Beta 2, was working with beta 1.

The symptom is that you can't create a new document, on most pages the + icon is missing or greyed out. On the browse page it is present and not greyed out, but doesn't work.

Steps to Reproduce:
If you start a new Documents project and modify the function below to include the print statement given:

func documentBrowser(_ controller: UIDocumentBrowserViewController, didRequestDocumentCreationWithHandler importHandler: @escaping (URL?, UIDocumentBrowserViewController.ImportMode) -> Void) {
    print("creating document")
    ...
Then the print statement isn't printed when + on browse page is tapped. Testing on iPad Pro 12" (original) with iOS 11 beta 2.

Or run attached project.

Expected Results:
`+` is visible in UI and documentBrowser(_:UIDocumentBrowserViewController:didRequestDocumentCreationWithHandler:) is called when `+` tapped

Observed Results:
No `+` except on browse page and this `+` does not call documentBrowser(_:UIDocumentBrowserViewController:didRequestDocumentCreationWithHandler:) when + tapped

Version:
iOS 11 beta 2

Notes:
Used to work in beta 1. No working project attached.

Configuration:
iPad Pro (original)
Comments
Howard Lovatt
July 6 2017, 12:35 PM
Browser9b2.zipattached
24.02 KB

Howard Lovatt
July 13 2017, 11:04 AM
Additional info: 1. Same problem with 9b3. 2. Works in simulator not on device, device is original iPad Pro running iOS 11 beta 3

Comments

Messages on Apple Bug Reporter

Apple Developer Relations July 20 2017, 2:05 AM A solution is under investigation. We will follow up with you again when it is available.

Apple Developer Relations July 25 2017, 6:19 AM We believe this issue is resolved in the latest Xcode 9 beta. Please test with the latest Xcode beta. If you still have issues, please update your bug report with any relevant logs or information that could help us investigate. Xcode https://developer.apple.com/download/

Howard Lovatt July 27 2017, 8:30 AM Fixed in beta 4. Many thanks. UIDocumentBrowserViewController is a great addition - keep up the good work.

Have closed bug.

By howard.lovatt at July 26, 2017, 10:33 p.m. (reply...)

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!