dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

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

Open r-proto opened this issue 3 years ago • 12 comments

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/

r-proto avatar Apr 23 '21 19:04 r-proto

I have the same issue

JoshuaOliphant avatar Apr 24 '21 17:04 JoshuaOliphant

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.

JoshuaOliphant avatar Apr 24 '21 17:04 JoshuaOliphant

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

r-proto avatar Apr 25 '21 13:04 r-proto

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

Redth avatar Apr 27 '21 00:04 Redth

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

wallym avatar May 28 '21 12:05 wallym

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.

ncarandini avatar May 30 '21 12:05 ncarandini

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

DeanFaizal avatar Jul 20 '21 15:07 DeanFaizal

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

crazicus avatar Aug 12 '21 19:08 crazicus

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 avatar Sep 11 '21 21:09 u2m4c6

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

u2m4c6 avatar Sep 11 '21 21:09 u2m4c6

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

tuyen-vuduc avatar Oct 21 '21 22:10 tuyen-vuduc

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

loho1968 avatar Mar 06 '22 12:03 loho1968