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

后端 未结 1 875
北海茫月
北海茫月 2020-12-14 12:13

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

I can do

xcodebuild install

from the c

相关标签:
1条回答
  • 2020-12-14 12:32

    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.

    0 讨论(0)
提交回复
热议问题