Swift Scripting hashbang

You should be able to include the test script in your project. Just make sure it's not added as a compile dependency for any of your targets. That way, you can use the Xcode editor to maintain the file, if you want.

1 Like

Using "." in the path specification can be dicey. I normally use the $SRCROOT environment variable, which is guaranteed to point at the directory that contains the .xcodeproj "file", which, right now, is where you're "." is pointing to.

1 Like

Thanks a lot @jonprescott, both are very valid points (using $SRCROOT and adding it to project but not to the target), just made the changes and works great !!