You are not allowed to run unsigned code from within the app sandbox.

There are some way to circumvent this, but it will require you to call the 
compiler as a library. Look into lib clang any you will find out how to link 
clang into your app, and compile within your own program code.

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