Xcodebuild'ing a workspace and setting a custom build path

后端 未结 3 440
醉话见心
醉话见心 2020-12-28 12:58

I\'m trying to use xcodebuild to build a multi-project project in a workspace. When XCode builds a workspace it automatically places all build artifacts in a co

3条回答
  •  难免孤独
    2020-12-28 13:23

    I'm not sure if this is a new option but the 5.0 release of xcodebuild has an option -derivedDataPath which allows you to specify the directory you'd like all the build products to sit in.

    For instance, passing -derivedDataPath build creates the folder build relative to where you ran xcodebuild from, and you can find your app predictably in a subfolder like build/Build/Products/Release-iphoneos.

    Documentation: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.html

提交回复
热议问题