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?

Answered by iPadawan in 401941022

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

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 ).

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.

Accepted Answer

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

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