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

.NET MAUI is not able to build (both Android and iOS) #11178

Open
6 of 15 tasks
Kebechet opened this issue Dec 13, 2024 · 7 comments
Open
6 of 15 tasks

.NET MAUI is not able to build (both Android and iOS) #11178

Kebechet opened this issue Dec 13, 2024 · 7 comments

Comments

@Kebechet
Copy link

Kebechet commented Dec 13, 2024

Description

Android build is not possible because image contains some f*ked up .NET versions (something with .NET7 even though I use .NET8)
actions/runner#3578

iOS publishing to Apple Connect requires XCode 16.2 but not BETA. It needs either RC1 or official release 16.2 that was published just recently:
xamarin/xamarin-macios#19157 (comment)

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

Android build:
Image: windows-2022
Version: 20241201.2.0

iOS build
Image: macos-15-arm64
Version: 20241202.430

Is it regression?

yes

Expected behavior

.NET MAUI builds should just pass as before

Actual behavior

Both pipelines crash.

  • Android one because of some wrong .NET versions
  • iOS one because Xcode provided is not latest 16.2 version

Repro steps

  • For android try to build a .NET maui app
  • For iOS build works but we cant publish it to Apple store because it was built with BETA version of XCode even though there is an official release already
@sureshe456
Copy link
Contributor

Hi @Kebechet, We began our weekly deployment of macOS 15 and macOS 15-arm64 images on Monday. The current Xcode version, 16.2 Release Candidate, is expected to be available within 1–2 days. We will provide an update here once the VM rollout is complete. Thank you for your patience.

@Kebechet
Copy link
Author

@sureshe456 Perfect, thank you. And what about the Android part ?

@Prabhatkumar59
Copy link
Contributor

Hi @Kebechet - We are closely looking into this issue and will update you after investigating. Appreciate your patience. Thanks!

@erik-bershel
Copy link
Contributor

erik-bershel commented Dec 13, 2024

Hey @Kebechet! 👋

We don't want to track two problems in one place at the same time. I suggest leaving this issue as a .NET issue.
In addition to what my colleague said. Regarding Xcode 16.2 and Xcode 16.2 RC and their availability, the problem is regular - updates will be released ASAP, as my colleague said. We are already preparing for the release version to deploy: #11179. It will be available next week right after RC on this week.

If you would like to track Xcode related issue, please open another one. 🙇

@Prabhatkumar59
Copy link
Contributor

Hi @Kebechet - We would like to inform you that the latest image version has been rolled out. Please update your sync process and try using the new version(20241215.1). Let us know if you encounter any further issues. Thanks!

@Kebechet
Copy link
Author

Kebechet commented Dec 22, 2024

Still getting the same problem

Error: C:\Program Files\dotnet\sdk\8.0.404\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.TargetFrameworkInference.targets(117,5): error NETSDK1139: The target platform identifier android was not recognized. [D:\a\SatisFIT\SatisFIT\src\Client\SatisFIT.Client.App\SatisFIT.Client.App.csproj::TargetFramework=net8.0-android]

Runner:
Image: windows-2022
Version: 20241215.1.0

@Kebechet
Copy link
Author

So even after the image update I had to do the following. When I changed:
dotnet workload install maui --ignore-failed-sources
to
dotnet workload install android maui --ignore-failed-sources --version 8.0.404
it started to work correctly.

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

No branches or pull requests

5 participants