How to setup xcode11 entitlement to read/write an plist from excel groupcontainer

Hello


I need to edit a plist file from MS Excel on MacOS. This plist is inside the group container.

I did wrote code to read the file but can't get any access to that file.


What do I need to do in XCode 11 to get this working?


Any tuts or samples available?

Accepted Reply

I did found out I did have to create a

'com.apple.security.temporary-exception.files.home-relative-path.read-write'

key with the relative path in the projects entitlement file inside the project and now it works so far.


Reading stuff: https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html

Replies

I need to edit a plist file from MS Excel on MacOS

Is the plist inside Excel ?


This plist is inside the group container.

group container of who ?

Hi Claude,

nope, the plist is inside the group container used by Excel.


I can open the file if I use the open panel in code, because I have that entitlement set ( file access typ : userselected file access ).

Does this answer (no) to your question ?


https://stackoverflow.com/questions/31600711/download-shared-app-group-container-from-xcode

I guess this is about something different but a link in there can be usable. I will check this out. Thank you.

My main questions is how I do add an file reference, in this case the plist, in the entitlement.

I did found out I did have to create a

'com.apple.security.temporary-exception.files.home-relative-path.read-write'

key with the relative path in the projects entitlement file inside the project and now it works so far.


Reading stuff: https://developer.apple.com/library/archive/documentation/Miscellaneous/Reference/EntitlementKeyReference/Chapters/AppSandboxTemporaryExceptionEntitlements.html