Re: Sandbox issues
Re: Sandbox issues
- Subject: Re: Sandbox issues
- From: Gideon King <email@hidden>
- Date: Tue, 01 Nov 2011 02:55:25 +1000
Thanks for the reply Kyle.
On 31/10/2011, at 11:21 AM, Kyle Sluder wrote:
> On Sun, Oct 30, 2011 at 4:46 PM, Gideon King <email@hidden> wrote:
>> Further to my previous questions about sandboxing, I have now done more research and experimentation, and the more I find out about it the more questions it throws up.
>>
>> 1. I have a folder in the Application Support folder that my apps have been using to store and retrieve log data, but even if I add an entitlement relative to the home folder to /Library/Application Support/My Folder/ I still can't access it. I would have expected the sandbox to have a link to that folder created in the container folder, but it doesn't. I'm interested in knowing what I may have done wrong with this…
>
> Read the "Migrating an App to a Sandbox" section of the App Sandbox
> Design Guide: http://developer.apple.com/library/mac/#documentation/Security/Conceptual/AppSandboxDesignGuide/MigratingALegacyApp/MigratingALegacyApp.html#//apple_ref/doc/uid/TP40011183-CH6-SW8
>
Yes, I understand that, and have migrated the data that is specific to my application, but this data is shared between two applications - the main application, and the error reporting/crash catcher application. So I don't want to migrate it - I want to access it from both applications.
>
> Do not use NSTemporaryDirectory. Use -[NSFileManager
> URLForDirectory:inDomains:].
I can't see one that relates to the temporary folder - I had a look at all the available values for NSSearchPathDirectory.
> LSOpenFromURLSpec is prohibited under sandboxing.
>
> This is prohibited under sandboxing. Read "Accessing Preferences of
> Other Apps" in the App Sandbox Design Guide:
> http://developer.apple.com/library/mac/documentation/Security/Conceptual/AppSandboxDesignGuide/DesigningYourSandbox/DesigningYourSandbox.html#//apple_ref/doc/uid/TP40011183-CH4-SW12
>
> File Radars describing your issues with App Sandboxing, and visit the
> Application Sandboxing Dev Forums:
> https://devforums.apple.com/community/mac/lion/appsandbox
>
> --Kyle Sluder
I'll submit reports on the issues, but my conclusion at this stage is that it will be completely impossible for me to use the sandboxing system in its current implementation. I see on the developer forum that there are a number of other people expressing similar concerns.
It is not clear to me where Apple is going with this as far as when Applications are going to require to be sandbox compliant (they do say in one place that it will be November, but there seem to have been so many issues raised since then that I wonder whether that really will be enforced), or what happens if it is just not possible for a specific application to work with the sandbox. Will there be some way for applications to get approval even if it doesn't work with the sandbox? Is Apple going to update the sandbox to allow for these types of scenarios? We just don't know at this stage…
I'll see how far I can get with the forums and bug reports, but for the moment, this appears to stall my app store submission process.
Regards
Gideon_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden