user75832
user75832

Reputation:

Mac OSX - Xcode Installation Directory

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

Answers (5)

naituw
naituw

Reputation: 1137

I made installation work with every build after following build settings setup:

  • Set Skip Install to NO
  • Set Deployment Location to YES
  • Set Installation Build Products Location to /
  • Set Installation Directory to ~/Sites/cgi-bin/

Upvotes: 1

Markus
Markus

Reputation: 436

Besides setting the "Installation Directory", make sure you also set DSTROOT (Installation Build Productions Location) in the settings to "/".

Upvotes: 0

James Moore
James Moore

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

Hsin
Hsin

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

cdespinosa
cdespinosa

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

Related Questions