Reputation:
After Xcode has finished building is there a way to make it copy the executable to specific directory
~/Sites/cgi-bin/
I have the target Installation Directory
set to the correct folder, with skip installation
unchecked, but no luck.
Is there something i'm missing?
Upvotes: 2
Views: 11467
Reputation: 1137
I made installation work with every build after following build settings setup:
Skip Install
to NO
Deployment Location
to YES
Installation Build Products Location
to /
Installation Directory
to ~/Sites/cgi-bin/
Upvotes: 1
Reputation: 436
Besides setting the "Installation Directory", make sure you also set DSTROOT (Installation Build Productions Location) in the settings to "/".
Upvotes: 0
Reputation: 399
Perhaps an easier approach is to add a "Copy Files" build phase. Set the Destination to "Absolute Path" and the Subpath to where you want it copied on disk. Both tilde expansion and $HOME can be used in the Subpath.
Upvotes: 1
Reputation: 33
In build phases down right corner Add Build Phase run script, add such as mv -f ${SYMROOT}/debug/projectname ~/Library/projectname
Upvotes: 2
Reputation: 20799
Check the "Deployment Postprocessing" build setting in your target's Release configuration. Installation is normally done only with a command-line xcodebuild install, but setting Deployment Postprocessing makes it install on every build.
Ensure your user account has write privileges in the directory you want to install in, because the IDE normally doesn't run with root privileges.
Upvotes: 6