MAUI: Can't rebuild the app in release mode due to unknown errors

Sreejith Sreenivasan 851 Reputation points
2023-11-22T13:58:28.76+00:00

I am getting below errors when try to rebuild my MAUI app in release mode.

Severity Code Description Project File Line Suppression State

Error MSB4064 The "AndroidFixManifests" parameter is not supported by the "XamarinDownloadArchives" task loaded from assembly: Xamarin.Build.Download, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from the path: C:\Users\MyName.nuget\packages\xamarin.build.download\0.11.4\buildTransitive\Xamarin.Build.Download.dll. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property. MyProjectName C:\Users\MyName.nuget\packages\xamarin.build.download\0.11.0\buildTransitive\Xamarin.Build.Download.targets 60 Severity Code Description Project File Line Suppression State Error MSB4063 The "XamarinDownloadArchives" task could not be initialized with its input parameters. MyProjectName C:\Users\MyName.nuget\packages\xamarin.build.download\0.11.0\buildTransitive\Xamarin.Build.Download.targets 52 Severity Code Description Project File Line Suppression State Error MSB3030 Could not copy the file "C:\Users\MyName.nuget\packages\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h" because it was not found. MyProjectName C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4911 Severity Code Description Project File Line Suppression State Error MSB3027 Could not copy "C:\Users\MyName.nuget\packages\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\child_policy_handler.h" to "bin\Release\net7.0-ios\iossimulator-x64\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\child_policy_handler.h". Exceeded retry count of 10. Failed. MyProjectName C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4911 Severity Code Description Project File Line Suppression State Error MSB3021 Unable to copy file "C:\Users\MyName.nuget\packages\xamarin.firebase.ios.cloudfirestore\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\upb-generated\src\proto\grpc\lb\v1\load_balancer.upb.h" to "bin\Release\net7.0-ios\iossimulator-x64\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\upb-generated\src\proto\grpc\lb\v1\load_balancer.upb.h". Could not find a part of the path 'bin\Release\net7.0-ios\iossimulator-x64\Firebase.CloudFirestore.resources\grpc.xcframework\ios-arm64\grpc.framework\PrivateHeaders\src\core\ext\upb-generated\src\proto\grpc\lb\v1\load_balancer.upb.h'. MyProjectName C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets 4911

Due to this errors I can't Achieve the APK or AAB files.

I have created a demo project with same issues and uploaded here.

My VS version 17.8.1

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,178 questions
{count} votes