dotnet-maui-check: maui-check does not work on Mac OS Big Sur with M1 chip

Hello,

When I execute maui-check, I receive:

/> maui-check
[1]    32374 killed     maui-check

I am on mac mini m1, Big Sur (11.2.3) and dotnet 6 preview 3 (6.0.100-preview.3.21202.5)

Thanks Julien

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 19 (1 by maintainers)

Most upvoted comments

@nbsoftware workaround for this: cd $HOME/.dotnet/tools and run maui-check by ./maui-check . it works with 0.8.6.0 or configure the tool as global with -g flag the output would be:

Tools directory '/Users/USERNAME/.dotnet/tools' is not currently on the PATH environment variable.
If you are using zsh, you can add it to your profile by running the following command:

cat << \EOF >> ~/.zprofile
# Add .NET Core SDK tools
export PATH="$PATH:/Users/USERNAME/.dotnet/tools"
EOF

And run `zsh -l` to make it available for current session.

You can only add it to the current session by running the following command:

export PATH="$PATH:/Users/USERNAME/.dotnet/tools"

after this, you should be able to call maui-check from any path

@nbsoftware workaround for this: cd $HOME/.dotnet/tools and run maui-check by ./maui-check . it works with 0.8.6.0 or configure the tool as global with -g flag the output would be:

Tools directory '/Users/USERNAME/.dotnet/tools' is not currently on the PATH environment variable.
If you are using zsh, you can add it to your profile by running the following command:

cat << \EOF >> ~/.zprofile
# Add .NET Core SDK tools
export PATH="$PATH:/Users/USERNAME/.dotnet/tools"
EOF

And run `zsh -l` to make it available for current session.

You can only add it to the current session by running the following command:

export PATH="$PATH:/Users/USERNAME/.dotnet/tools"

after this, you should be able to call maui-check from any path

This worked. Thank you @cheles !

Can you run dotnet --list-sdks and share the output?

You need dotnet core 3.1.x installed for maui-check (the assumption is you don’t have 6.x yet if you’re running it). Not sure if I can find a way to make the error output better in this scenario than it crashing.

Furthermore, the arm64 version of 6.x will NOT work for building MAUI apps yet, so just installed the x64 version now and use Rosetta2 emulation.