Skip to content

Instantly share code, notes, and snippets.

@kimaldis
Last active July 13, 2019 12:13
Show Gist options
  • Save kimaldis/30220b296c25bc48322bc97b407271ab to your computer and use it in GitHub Desktop.
Save kimaldis/30220b296c25bc48322bc97b407271ab to your computer and use it in GitHub Desktop.
[Copy Executable on Xcode Build] In the Build Phases, add a `New Run Script Phase` to the list. I use `/bin/bash`, but you can probably use the default `/bin/sh` too. Then, I added the following code to the script. Or: Add a copy files phase to Build Phases (`Editor->Add Build Phase->Add Copy Files Build Phase`) and drag the built app into the c…
cp -f -R "${BUILT_PRODUCTS_DIR}/${APPLICATION_NAME}" "/some/folder"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment