-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xcode local build failure: xcode-select : error : tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance #102471
Comments
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas |
Related to #100189 |
Port dotnet#100190 to internal build scripts Fixes dotnet#102471
Port dotnet#100190 to internal build scripts Fixes dotnet#102471
Yes, it seems like the same failure, it just happened at different times. I'll close this and update that one with my findings and my suggestions. |
Oh I typed too soon - That one is already closed as fixed. Maybe it was a different root cause, as that one was merged 2 months ago. Edit: Same root cause, different MSBuild script. |
You can try the change in #102473 to check that it fixes the build break for you. |
…02473) Port dotnet#100190 to internal build scripts Fixes dotnet#102471
When building runtime in my local Macbook Pro with
build.sh -rc Release
today, I got this failure:It came from here:
https://github.com/dotnet/runtime/blob/main/src/coreclr/tools/aot/ILCompiler/ILCompiler.csproj#L79
Root cause was that the
Xcode -> Preferences -> Location -> Command Line Tools
dropdown was set toNo Xcode selected
. So I had to manually select the single only option in the dropdown and now the local build succeeded. It's explained here:https://stackoverflow.com/a/72115137
The top error comes from Xcode itself, but that message wasn't helpful. But we could kind of address this from our side:
The text was updated successfully, but these errors were encountered: