iOS build fails on Mac M1 with VS2022 using avalonia.xplat template
See original GitHub issueDescribe the bug
Using a brand new project created from the Avalonia xplat
template, on MacOS Monterey, it is not possible to build the iOS project.
To Reproduce
Steps to reproduce the behavior:
- Ensure dotnet core SDK 6.0.300 is installed
- Ensure the latest version of XCode is installed
- Create an empty directory
- Run
dotnet new avalonia.xplat
- run
dotnet workload restore
- run
dotnet restore
cd {myproject}.iOS
dotnet run
- See error:
error CS0012: The type 'UIResponder' is defined in an assembly that is not referenced. You must add a reference to assembly 'Xamarin.iOS, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'.
Expected behavior I should be able to build the iOS application and launch it on the Simulator like the Avalonia Wordle application.
Desktop (please complete the following information):
- OS: MacOS
- Version Monterey
Additional context Could not isolate the difference between the Wordle application and the created application from the template. The Avalonia Wordle sample application compiles and launches, but crashes on Startup. Would appreciate a workaround until the next stable version is published if this can be solved.
Issue Analytics
- State:
- Created a year ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
iOS build fails on Mac M1 with VS2022 using avalonia. ...
Using a brand new project created from the Avalonia xplat template, on MacOS Monterey, it is not possible to build the iOS project....
Read more >I cannot get AvaloniaUi (Android, IOS, Browser) to build in ...
so am trying to build Avalonia Cross Platform UI to build on Mac M1. Unfortunately, I have only been able to get the...
Read more >macOS Distribution
macOS applications are typically distributed in a .app application bundle. ... Use Xcode to edit Info.plist , it has auto-completion for all properties....
Read more >Install
The best place to get started with Avalonia is by creating an application using a template. To install the Avalonia templates, run the...
Read more >Untitled
WebAvalonia (https://avaloniaui.net/) is a cross platform XAML framework for .NET. It lets you build rich application experiences using XAML markup language ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@NullFragment not related. Check breaking changes page https://github.com/AvaloniaUI/Avalonia/wiki/Breaking-Changes Note that 11.0 is in development and nightly builds might not be stable.
I came across this issue while trying to look into Avalonia. Upgrading to a newer nightly build still results in build failures for me (nothing was modified in the project other than the NuGet package versions):
I’m using
Avalonia Templates @ v0.10.14
and I’ve tried all of the Avalonia NuGet packages at0.10.999-cibuild0021189-beta
and0.10.999-cibuild0021319-beta