At some point, Nix started setting the $DEVELOPER_DIR env var, which breaks xcodebuild (which internally calls xcrun).
Some context on this GitHub issue. Deeper explanation from ChatGPT here.
Differential D15366
[nix] Fix xcodebuild command Authored by ashoat on Sep 17 2025, 9:04 PM. Tags None Referenced Files None Subscribers None
Details
At some point, Nix started setting the $DEVELOPER_DIR env var, which breaks xcodebuild (which internally calls xcrun). Some context on this GitHub issue. Deeper explanation from ChatGPT here. Confirm xcodebuild no longer prints error: tool 'xcodebuild' not found when run in Nix environment
Diff Detail
Event TimelineComment Actions I'm going to land this one without review as it's a simple change and clearly breaking things. The CI is still failing because we run buildkite-agent from within Nix... to fix it I need to land this diff, then run git pull and reenter the Nix environment on all runners. |