Hi
In order to support continuous integration, I've made a builder image with macOS and Xcode installed and I'd like to automate the process of building my workspace targets.
So I'm using the following command
/usr/bin/xcodebuild clean build -workspace ./myproj.xcworkspace -configuration Release -scheme myScheme
In my development machine I'm setting derived data location as relative to project directory from Xcode UI, so the build outputs are written under: <my project path>/DerivedData/myProj/Build/Products/Debug
However, in the build image I cannot set the derived data path since it also serves other projects.
Therefore, I'd like to find the appropriate flag to achieve similar behaviour from the xcodebuild command.
This means setting derived data location accordingly for all the targets which are being created in the build command. I've tried flags like CONFIGURATION_BUILD_DIR=./DerivedData or
-derivedDataPath ./DerivedData but without success.
Any idea where am I go wrong ?
In order to support continuous integration, I've made a builder image with macOS and Xcode installed and I'd like to automate the process of building my workspace targets.
So I'm using the following command
/usr/bin/xcodebuild clean build -workspace ./myproj.xcworkspace -configuration Release -scheme myScheme
In my development machine I'm setting derived data location as relative to project directory from Xcode UI, so the build outputs are written under: <my project path>/DerivedData/myProj/Build/Products/Debug
However, in the build image I cannot set the derived data path since it also serves other projects.
Therefore, I'd like to find the appropriate flag to achieve similar behaviour from the xcodebuild command.
This means setting derived data location accordingly for all the targets which are being created in the build command. I've tried flags like CONFIGURATION_BUILD_DIR=./DerivedData or
-derivedDataPath ./DerivedData but without success.
Any idea where am I go wrong ?