Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WARNING ITMS-90737: "Invalid Document Configuration [duplicate]

I got this error message when uploading my app to ItunesConnect today,

Invalid Document Configuration - Document Based Apps should support either the Document Browser (UISupportsDocumentBrowser = YES) or implement Open In Place (LSSupportsOpeningDocumentsInPlace = YES/NO). Visit https://developer.apple.com/document-based-apps/ for more information.

like image 970
null Avatar asked Sep 10 '18 16:09

null


1 Answers

To Fix -

Open Info.plist file.

If you have UIDocumentInteractionController within your App use -
Add "UISupportsDocumentBrowser" select boolean YES

Otherwise -
Add "LSSupportsOpeningDocumentsInPlace" select boolean YES

Info.plist Code:

//if using - UIDocumentInteractionController
<key>UISupportsDocumentBrowser</key>
    <true/>

//if not use - 
<key>LSSupportsOpeningDocumentsInPlace</key>
    <true/>

From the Apple Developer Documentation

UISupportsDocumentBrowser

UISupportsDocumentBrowser (Boolean - iOS) Specifies that the app is a document-based app and uses the UIDocumentBrowserViewController class.

If this key is set to YES, the user can set the document browser’s default save location in Settings. Additionally, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a Document Browser. Users can open and edit these document in place.

This key is supported in iOS 11 and later.

UIDocumentInteractionController

Use this class to present an appropriate user interface for previewing, opening, copying, or printing a specified file. For example, an email program might use this class to allow the user to preview attachments and open them in other apps. After presenting its user interface, a document interaction controller handles all interactions needed to support file preview and menu display. You can also use the delegate to participate in interactions occurring within the presented interface. For example, the delegate is notified when a file is about to be handed off to another application for opening. For a complete description of the methods you can implement in your delegate, see UIDocumentInteractionControllerDelegate.

Reference Link

LSSupportsOpeningDocumentsInPlace

LSSupportsOpeningDocumentsInPlace (Boolean - iOS) When set to a value of YES, enables your app to open the original document from a file provider, rather than a copy of the document. The app can access documents from the system’s local file provider, the iCloud file provider, and any third-party File Provider extensions that support opening documents in place.

The URL for a document opened in place is security-scoped. For information about working with security-scoped URLs and bookmarks, read the overview in NSURL Class Reference and read Document Provider in App Extension Programming Guide.

Important: When opening a document in place, other processes can modify the document at any time. Therefore, you must coordinate your access to the document using either a UIDocument subclass or NSFilePresenter and NSFileCoordinator objects. In iOS 11 and later, if both this key and the UIFileSharingEnabled key are YES, the local file provider grants access to all the documents in the app’s Documents directory. These documents appear in the Files app, and in a document browser. Users can open and edit these document in place.

Reference Link

Setting Up a Document Browser App Link

like image 51
null Avatar answered Nov 10 '22 00:11

null