无法构建或发布应用程序 maui,有很多错误

问题描述 投票:0回答:1

我的应用程序在启动时在 IOS 和 Android 上运行良好,但是当我尝试在 Android 上发布应用程序时,我收到所有这些错误:

android app .net maui 1>C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4911,5): error MSB3021: Unable to copy file "C:\Users\0infi\.nuget\packages\xamarin.firebase.ios.core\8.10.0.3\lib\net6.0-ios15.4\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_x86_64-simulator\GoogleUtilitiesComponents.framework\Headers\GoogleUtilitiesComponents-umbrella.h" to "bin\Release\net7.0-ios\iossimulator-x64\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_x86_64-simulator\GoogleUtilitiesComponents.framework\Headers\GoogleUtilitiesComponents-umbrella.h". Could not find a part of the path 'bin\Release\net7.0-ios\iossimulator-x64\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_x86_64-simulator\GoogleUtilitiesComponents.framework\Headers\GoogleUtilitiesComponents-umbrella.h'. 

etc

我尝试清理、删除 bin 和 obj 文件、构建、重建

c# android .net xamarin.android maui
1个回答
0
投票

您可以看到错误消息,指示无法在 Android 平台上构建包

Xamarin.Firebase.iOS.Core
。您可以检查Xamarin.Firebase.iOS.Core的框架

© www.soinside.com 2019 - 2024. All rights reserved.