To add a build phase to automate copying your built CLI executable into /usr/local/bin as part of the build process.
You can add a Run Script Phase to your build.
Steps:
-
In Xcode, select your project in the sidebar.
-
Choose your target → Build Phases tab.