Fixed it after some extensive testing. Nothing to do with Xcode or Sandbox.
Everything to do with logPath.
The folder location was all wrong. I did a correct update based on a version that was never implemented, so an error snuck into the process.
Took some time to get this right. Now it's compiling without warnings and running reliably again.
Topic:
App & System Services
SubTopic:
Core OS
Tags: