iPad document app into Mac app

Since Xcode 11 setting iPad and Mac in General / Deployment Info fo a target enable it to run in iPad as well as in iMac.
When I try to run on the iMac a document app, even the very simple one created by the Xcode on its template, it fails with the error:
Code Block
If the app is a document app running it in a Mac fails with the error: [OpenSavePanels] ERROR: Unable to display open panel: your app is missing the User Selected File Read app sandbox entitlement. Please ensure that your app's target capabilities include the proper entitlements.

What have to be added in the project to let a document app running on iPad as well as on iMac?
Answered by bjb568 in 638563022
Go to "YourAppName.entitlements", add a new row with key "com.apple.security.files.user-selected.read-write", type "Boolean", and value "1".

I figured out these steps from this question: https://stackoverflow.com/q/59690221/2371861
Accepted Answer
Go to "YourAppName.entitlements", add a new row with key "com.apple.security.files.user-selected.read-write", type "Boolean", and value "1".

I figured out these steps from this question: https://stackoverflow.com/q/59690221/2371861
Thank you so much. working for me!
iPad document app into Mac app
 
 
Q