ChrisChares / swiftmon

Automatically build and restart your Swift executable on file changes. Like Node.js' nodemon

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Requires Swift to be symlinked to /usr/local/bin

ChrisChares opened this issue · comments

By default, the Swift executable exists at /Users/$USER/.swiftenv/shims/swift. This is a problem as Cocoa spawns tasks with fork() and exec(), meaning these tasks do not have access to the users' environment and cannot resolve that path.

The current workaround requires symlinking swift to /usr/local/bin

More on the issue

Welcoming any suggestions on how to get around this without requiring an additional step from the user.