Specifying a subproject's Configuration in Xcode

前端 未结 4 1850
野的像风
野的像风 2021-02-02 14:00

I have an Xcode project (A) referencing another project (B). By default (as far as I understand it) Xcode will implicitly build the configuration for t

4条回答
  •  遇见更好的自我
    2021-02-02 14:21

    Yes, this is not naturally supported by Xcode; when you build a target, it builds one configuration of itself and of all dependent targets.

    The workaround, as Rob mentioned, is to have a dependent target that's an Aggregate Target type that comprises a single Run Script build phase, which simply invokes xcodebuild -configuration Release (or whatever).

提交回复
热议问题