I experience a strange problem with the X tool on dotnet 6 on Macs with an Apple Silicon M1 / M2 processor. This does NOT happen on Intel MACs.
So here is the problem (X seems not to find the installed SDK):
[tools] x
You must install .NET to run this application.
App: /Users/tbednarz/.dotnet/tools/x
Architecture: x64
App host version: 7.0.2
.NET location: Not found
Learn about runtime installation:
https://aka.ms/dotnet/app-launch-failed
Download the .NET runtime:
https://aka.ms/dotnet-core-applaunch?missing_runtime=true&arch=x64&rid=osx.13-x64&apphost_version=7.0.2
I run .NET6 on the MAC:
[tools] dotnet --info
.NET SDK:
Version: 6.0.401
Commit: 0906eae6f8
Laufzeitumgebung:
OS Name: Mac OS X
OS Version: 13.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/6.0.401/
global.json file:
Not found
Host:
Version: 6.0.9
Architecture: arm64
Commit: 163a63591c
.NET SDKs installed:
6.0.401 [/usr/local/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.9 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Download .NET:
https://aka.ms/dotnet-download
Learn about .NET Runtimes and SDKs:
https://aka.ms/dotnet/runtimes-sdk-info
[tools]
And in my PATH I have both, the SDK and the TOOLS:
[tools] echo $PATH
/opt/homebrew/bin:/opt/homebrew/sbin:/Users/tbednarz/.dotnet/tools:/opt/homebrew/bin:/opt/homebrew/sbin:/Library/Frameworks/Python.framework/Versions/3.10/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Apple/usr/bin:/Users/tbednarz/Library/Application Support/JetBrains/Toolbox/scripts
Interesting is, that the path to tools
appears twice, once expanded and once with the ~
for the home folder. This sometimes does not work correctly. So I added the expanded tools
path in my .zshrc
file. I do NOT know where the other one is coming from, I did not set it.
Does anybody have some experience with the apple silicon macs and how to get the x
tool working?