This is happening on every SPM Xcode generated project for me, it started with Xcode 9.3 but is extant in 9.4 as well. It looks like it happens when it spawns a thread to run the test, and I have turned off the various Xcode sanitiser and thread checks but no change. The error itself suggests it doesn't have permission to spawn the thread.