Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
477 stars 79 forks source link

XCode 12.4 Checkup... XCode.app () not installed. #21

Open r-proto opened 3 years ago

r-proto commented 3 years ago

When running maui-check it fails on Xcode checkup saying that Xcode 12.4 is not installed when in fact it is installed. In VS for Mac the path is /Applications/Xcode.app/

JoshuaOliphant commented 3 years ago

I have the same issue

JoshuaOliphant commented 3 years ago

I found in your code that you're running xcodebuild -version, which result in this error xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance. I fixed it by running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer.

r-proto commented 3 years ago

@JoshuaOliphant running sudo xcode-select -s /Applications/Xcode.app/Contents/Developer works! Thanks!

Redth commented 3 years ago

Thanks, I'll think about how to adjust this error better...

wallym commented 3 years ago

Getting this error on preview 4 and Xcode 12.5 on an apple m1 Mac mini.

ncarandini commented 3 years ago

Getting the same error on preview 4 and Xcode 12.5 on my MacBook Pro. Executing the sudo xcode-select -s /Applications/Xcode.app/Contents/Developer command solved the issue.

DeanFaizal commented 3 years ago

Got this for preview 6 and XCode 13 beta. Solution is to run: sudo xcode-select -s /Applications/Xcode-beta.app

crazicus commented 3 years ago

I'm running into this issue still, after executing the xcode-select command. .NET Preview 6, XCode 12.5.1 (12E507).

u2m4c6 commented 3 years ago

I'm running into this issue still, after executing the xcode-select command. .NET Preview 6, XCode 12.5.1 (12E507).

This is a bit of an old issue but are you using an M1 mac? I had to run everything in a Rosetta terminal to get it to work.

u2m4c6 commented 3 years ago

Also for some reason it only worked with Xcode 13 beta, not Xcode 12.5.1.

tuyen-vuduc commented 2 years ago

@u2m4c6 It's answered here Xcode 13 beta or above is required.

loho1968 commented 2 years ago

I'm running into this issue still, after executing the xcode-select command. Full maui-check Log Full maui-check Log.txt