Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specifying a build action (e.g. install) in Xcode GUI

Tags:

xcode

Is it possible to specify a build action, for example install using Xcode GUI?

I can do

xcodebuild install

from the command line but can't find a key ACTION in the build settings in the GUI menu, or any relevant menu items.

like image 547
MHC Avatar asked Feb 27 '11 21:02

MHC


1 Answers

I figured that if I set both Deployment Location(DEPLOYMENT_LOCATION) and Deployment Postprocessing(DEPLOYMENT_POSTPROCESSING), then the build process installs the product and also copies public/private headers. Setting DeploymentPostprocessing is required no matter what the actual postprocessing is.

Also, both Installation Directory(INSTALL_PATH) and Public/Private Headers Folder Path(PUBLIC/PRIVATE_HEADERS_FOLDER_PATH) are assumed to be under Installation Build Products Location(DST_ROOT), so the product and headers will be located there.

One thing that bothers me is that Installation Directory should start with "/ " in order to correctly appended to DST_ROOT. For example, if DST_ROOT is /myDistributionRoot/ and INSTALL_PATH is lib/, then the destination directory becomes /myDistributionRootlib, not /myDistributionRoot/lib.

like image 172
MHC Avatar answered Nov 19 '22 08:11

MHC