It is not the problem that they are not signed, but the problem that the 
fork(2) syscall is prevented from working in sandbox. Using the compiler as a 
library eliminated all the fork(2) calls.

On Jun 17, 2014, at 9:33, SevenBits <sevenbitst...@gmail.com> wrote:

> On Jun 16, 2014, at 9:25 PM, Maxthon Chan <xcvi...@me.com> wrote:
> 
>> You are not allowed to run unsigned code from within the app sandbox.
> 
> Are the command line developer tools not signed? One would think that they 
> would be signed with Apple’s certificate… I have been able to execute other 
> executables in /bin and /usr/bin in the past with no problems.
> 
>> 
>> There are some way to circumvent this, but it will require you to call the 
>> compiler as a library. Look into lib clang and you will find out how to link 
>> clang into your app, and compile within your own program code.
> 
> Seems relatively straightforward. I will look into this, thanks.
> 
>> 
>> On Jun 17, 2014, at 9:12, SevenBits <sevenbitst...@gmail.com> wrote:
>> 
>>> Does anyone know how to do this? Whenever I try to invoke the clang 
>>> compiler from within my sandboxed application, I get an error message 
>>> saying that the compiler cannot be used from within the sandbox. I have 
>>> permission to access all of the necessary files, so Powerbox denying access 
>>> to one of the resources is not at issue.
>>> 
>>> Here’s the specific error message:
>>> 
>>> xcrun: error: cannot be used within an App Sandbox.
>>> 
>>> My application, as part of its features, contains a C code generator which 
>>> generates C code that my program then turns into an executable. I have the 
>>> com.apple.security.files.user-selected.executable permission in my 
>>> entitlements file… I’m not sure what the problem is. Ideally, I’d like my 
>>> user to not have to compile the code themselves, as they may not 
>>> necessarily be tech-savvy enough to do so.
>>> 
>>> Anyone have any ideas?
>>> 
>>> — SevenBits
>>> _______________________________________________
>>> 
>>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>>> 
>>> 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:
>>> https://lists.apple.com/mailman/options/cocoa-dev/xcvista%40me.com
>>> 
>>> This email sent to xcvi...@me.com
>> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to