<div dir="ltr"><div>SPM and Workspace builds need to be added to the XCode portgroup - it's something that I've been working on for a while.</div><div><br></div><div>I'm a little surprised the sandbox is involved at all. Is it XCode's sandbox complaining? Or is it Terminal? Make sure the terminal has full disk access.</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>—Mark<br></div><div>_______________________<br>Mark E. Anderson <<a href="mailto:mark@macports.org" target="_blank">mark@macports.org</a>><br></div><div><a href="https://trac.macports.org/wiki/mark" target="_blank">MacPorts Trac WikiPage</a><br></div><div><a href="https://github.com/markemer" target="_blank">GitHub Profile</a><br></div><div><br></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Dec 10, 2021 at 7:57 AM Andrew Udvare <<a href="mailto:audvare@gmail.com">audvare@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am testing out how to build Xcode-based packages that use Swift <br>
Package Manager (SPM) and it seems even with 'hacks' to make Xcode not <br>
do any downloading of code, there's still some network activity (or <br>
something the sandbox is blocking) that I have not figured out.<br>
<br>
Example port: <a href="https://github.com/Tatsh/ports/tree/master/aqua/eul" rel="noreferrer" target="_blank">https://github.com/Tatsh/ports/tree/master/aqua/eul</a><br>
<br>
Try using this with `port -d destroot` to see everything. You will get <br>
this error:<br>
<br>
Resolve Package Graph<br>
<br>
sandbox-exec: sandbox_apply: Operation not permitted<br>
<br>
sandbox-exec: sandbox_apply: Operation not permitted<br>
<br>
sandbox-exec: sandbox_apply: Operation not permitted<br>
<br>
sandbox-exec: sandbox_apply: Operation not permitted<br>
<br>
cannot update Package.resolved file because automatic resolution is <br>
disabledxcodebuild: error: Could not resolve package dependencies:<br>
   sandbox-exec: sandbox_apply: Operation not permitted<br>
   sandbox-exec: sandbox_apply: Operation not permitted<br>
   sandbox-exec: sandbox_apply: Operation not permitted<br>
   sandbox-exec: sandbox_apply: Operation not permitted<br>
   cannot update Package.resolved file because automatic resolution is <br>
disabled<br>
   fatalError<br>
<br>
Thoughts on how this can be worked around? If anyone figures out what <br>
these blocked operations were I'd be very interested in knowing.<br>
<br>
Thanks<br>
Andrew<br>
</blockquote></div>