Skip to content

"sandbox_apply_container: Operation not permitted" error with xcodebuild and Swift package dependencies #59

Answered by naruaway
p00ya asked this question in Everyday usage
Discussion options

You must be logged in to vote

@carlocab @Frizlab I just found that we can just use OTHER_SWIFT_FLAGS to pass -disable-sandbox so that the nested sandbox from Swift macro will not be created.

So in my case, something like the following worked for a Xcode project which is using Swift macro and Swift packages 🎉 :

/usr/bin/sandbox-exec -f mysandbox.sb xcodebuild OTHER_SWIFT_FLAGS='$(inherited) -disable-sandbox' -IDEPackageSupportDisableManifestSandbox=1 -IDEPackageSupportDisablePluginExecutionSandbox=1

Replies: 7 comments 16 replies

Comment options

You must be logged in to vote
2 replies
@Frizlab
Comment options

@Frizlab
Comment options

Comment options

You must be logged in to vote
1 reply
@p00ya
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@p00ya
Comment options

@Frizlab
Comment options

@gromgit
Comment options

@p00ya
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Frizlab
Comment options

Comment options

You must be logged in to vote
8 replies
@naruaway
Comment options

@Frizlab
Comment options

@Frizlab
Comment options

@naruaway
Comment options

@Frizlab
Comment options

Answer selected by p00ya
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
7 participants