Mac build host sees new Xcode but builds use an old path

A Mac build host for development is hitting an Xcode path mismatch. Xcode 26.5 was installed with the Xcodes app and set as the active version.

The `xcode-select -p` command correctly reports `/s/Xcode-26.5.0.app/s/Developer`. The logs also detect Xcode version 26.5 and the same new Xcode path.

But when the build starts, it fails before the actual build begins because something is still trying to use an older Xcode location. The logs also show the `mlaunch` tool path under the MAUI cache and a Microsoft iOS SDK 26.5 path.

Key points

  • Xcode 26.5 was installed through the Xcodes app and made active.
  • `xcode-select -p` returns the correct new Xcode 26.5 path.
  • logs also detect Xcode 26.5 and the new path.
  • The real build still fails because an older Xcode location is being used somewhere.
  • Mac build hosts with multiple Xcode versions need checks beyond the system active path.
Read original