flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.34k stars 27.54k forks source link

[iOS build] Add support for xcodebuild derivedDataPath flag #156136

Open EArminjon opened 1 month ago

EArminjon commented 1 month ago

Use case

I want to run multiple parallel builds on my Mac Studio Runner machine. By setting derivedDataPath I expect to no longer use ~/Library/Developer/Xcode/DerivedData and so avoid issue about it.

Bellow command sadly didn't work

export FLUTTER_XCODE_DERIVEDDATA_PATH=DerivedData ; flutter build ipa

Proposal

Maybe same proposal as https://github.com/flutter/flutter/issues/121702 by adding an environnement variable.

huycozy commented 1 month ago

Looks like it's supported on macOS build here:

https://github.com/flutter/flutter/blob/e7c993d7f96d6b10a061b34258115eca0e9d064c/packages/flutter_tools/lib/src/macos/build_macos.dart#L198

Keeping this as a feature request for iOS.