Skip to content

Slow builds on Mac M1 #11376

Open
Open
@davidortinau

Description

@davidortinau

Description

Here are build logs for iOS and Android on a newly installed M1 running Ventura, net7 and VS Mac public GA builds.

In general Android takes anywhere from 130s to 300+s to build cold. iOS is slightly better around 110s.

Archive.zip

Verified that CLI is also long.

dmo@Davids-MBP CarouselViewDemos % dotnet build -t:Run -f net7.0-android33.0
MSBuild version 17.4.0+18d5aef85 for .NET
  Determining projects to restore...
  All projects are up-to-date for restore.
/Users/dmo/work/maui-samples/6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/ViewModels/MonkeysViewModelWithDelay.cs(12,13): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/Users/dmo/work/maui-samples/6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/CarouselViewDemos.csproj::TargetFramework=net7.0-android33.0]
  CarouselViewDemos -> /Users/dmo/work/maui-samples/6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/bin/Debug/net7.0-android33.0/CarouselViewDemos.dll

Build succeeded.

/Users/dmo/work/maui-samples/6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/ViewModels/MonkeysViewModelWithDelay.cs(12,13): warning CS4014: Because this call is not awaited, execution of the current method continues before the call is completed. Consider applying the 'await' operator to the result of the call. [/Users/dmo/work/maui-samples/6.0/UserInterface/Views/CarouselViewDemos/CarouselViewDemos/CarouselViewDemos.csproj::TargetFramework=net7.0-android33.0]
    1 Warning(s)
    0 Error(s)

Time Elapsed 00:01:54.56

When I installed clean I noticed that installing MAUI uses Rosetta. Wonder how much this impacts build perf.

Screenshot 2022-11-13 at 9 58 47 AM

Steps to Reproduce

I'm building the CarouselViewDemos project after updating the project to net7.

<TargetFrameworks>net7.0-ios16.0;net7.0-maccatalyst15.4;net7.0-android33.0</TargetFrameworks>

Link to public reproduction project repository

https://github.com/dotnet/maui-samples/blob/main/6.0/UserInterface/Views/CarouselViewDemos/

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

iOS, Android

Affected platform versions

API 33, iOS 16

Did you find any workaround?

nope

Relevant log output

No response

Metadata

Metadata

Labels

area-toolingXAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debuggingdelighter-scplatform/androidplatform/ioss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions