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:
What have to be added in the project to let a document app running on iPad as well as on 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?
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
I figured out these steps from this question: https://stackoverflow.com/q/59690221/2371861