简体   繁体   中英

Enable App Sandboxing cause application not to save files

I have an application that generates bar codes, once generated the user can save the code as png, jpeg etc ... it was working fine before apple introduces sandboxing, once i enable it the application doesn't save the files, it only does that when it is disabled, i've tried playing around with access permissions that they have under the sandbox in xcode i've tried enabling everything under it too but nothing seems to be working to solve the problem, sop not sure what else can i try, any ideas would be greatly appreciated.

my project is saved inside the documents folder if that will make any difference.

the application is signed, tried self signed and the code generated through apple developer program.

Thanks in advance.

Make sure that you use an NSSavePanel , or NSOpenPanel , because only those two objects can explicitly give you access to user-selected files.

And make sure that under the entitlements selection that you have read/write access to user selected files:

在此处输入图片说明

If you're already doing these two steps, and it still doesn't work, let me know.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM