Skip to content
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

Can't run on Mac Monterey M1 #26

Open
shadowchamber opened this issue May 11, 2022 · 8 comments
Open

Can't run on Mac Monterey M1 #26

shadowchamber opened this issue May 11, 2022 · 8 comments

Comments

@shadowchamber
Copy link

shadowchamber commented May 11, 2022

Hello,
I cloned the repository on Mac Monterey on M1 and build.
It fails because of
using Microsoft.Maui.Devices;
It says that this namespace doesn't exist.
So VS suggested to add using Microsoft.Maui.Essentials;
It builds fine but fails on start

image

Could you please advise how can I run it correctly?

Thank you

@shadowchamber shadowchamber changed the title Can't run Can't run on Mac Monterey M1 May 11, 2022
@RubaShanmugamm
Copy link

Hi Shadowchamber,

Seems you are running with an older version of .NET MAUI. Can you please update your dot net version and .NET MAUI Workloads to the latest? Below are the guidelines for installing the new version of .NET MAUI

Link:
https://github.com/dotnet/maui/wiki/macOS-Install

Please let us know if you need any other details.

Regards,
Ruba Shanmugam

@shadowchamber
Copy link
Author

Hello,
I've just updated

image

And it is still saying

image

@shadowchamber
Copy link
Author

/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/App.xaml.cs(9,22,9,38): error CS0234: The type or namespace name 'ApplicationModel' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/App.xaml.cs(11,22,11,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/Pages/ControlsHomePage.xaml.cs(10,22,10,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/Samples/SfLinearGauge/Samples/Showcase/Showcase.xaml.cs(12,22,12,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/Samples/SfListView/Samples/ExpandableView/Helper/Behavior.cs(10,22,10,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/Samples/SfListView/Samples/LoadMore/ViewModel/LoadMoreViewModel.cs(10,22,10,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
/Users/shadowchamber/Projects/test3449573/SampleBrowser.Maui/Samples/SfScheduler/Samples/AgendaView/ViewModel/AgendaViewModel.cs(11,22,11,29): error CS0234: The type or namespace name 'Devices' does not exist in the namespace 'Microsoft.Maui' (are you missing an assembly reference?)
0 Warning(s)
7 Error(s)

Time Elapsed 00:00:24.30

========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Build: 7 errors, 0 warnings

@PaulAndersonS
Copy link
Contributor

Hi @shadowchamber ,

Seems you have .NET Version as 6.0.200. Can you please install version 6.0.300. You can check your current version installed by using the below command.

dotnet --version

Please install the 6.0.300 from the link: https://dotnet.microsoft.com/en-us/download/dotnet/6.0

After that again update the maui workloads as per the guidelines provided in our previous comment. Then create a new project in .NET MAUI and check the maui versions referred in the project.

@shadowchamber
Copy link
Author

shadowchamber commented May 13, 2022

Hello @PaulAnderson02,
I've updated dotnet and workloads.
Now it is building and running.

It is another issue but it seems like listview page fails

image

@PaulAndersonS
Copy link
Contributor

Hi @shadowchamber ,

Currently our assemblies are build with RC2 update. This may be the cause of the issue. We will release a new version assemblies by tomorrow with RC 3 update. Please check with that version and let us know

@shadowchamber
Copy link
Author

shadowchamber commented May 30, 2022

Hi @PaulAnderson02
I've updated packages to latest preview and it seems like list view is working now.
It is not fit for iPod touch 7 but in general fine

image

Thank you

@shadowchamber
Copy link
Author

It is not fit for iPhone 8 plus as well

image

and for iPhone 13 Pro Max

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants