TobiasBuchholz / Plugin.Firebase

Wrapper around the native Android and iOS Firebase Xamarin SDKs
MIT License
220 stars 49 forks source link

MSB3023 Error while building on net8 ios #237

Closed Asmoyed closed 11 months ago

Asmoyed commented 11 months ago

Hello on my MAUI project I'm unable to build for ios net8.

Visual studio is unable to copy the files from the .nuget folder into the project with the MSB3026 error :

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(4911,5): warning MSB3026: Impossible de copier "C:\Users\touta\.nuget\packages\xamarin.firebase.ios.cloudmessaging\8.10.0.3\lib\net6.0-ios15.4\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator\FirebaseMessaging.framework\Headers\FIRMessagingExtensionHelper.h" vers "bin\Debug\net8.0-ios\iossimulator-x64\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator\FirebaseMessaging.framework\Headers\FIRMessagingExtensionHelper.h". Nouvelle tentative de l'opération 8 dans 1000 ms. Impossible de trouver une partie du chemin d'accès 'bin\Debug\net8.0-ios\iossimulator-x64\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64_x86_64-simulator\FirebaseMessaging.framework\Headers\FIRMessagingExtensionHelper.h'.

It says it can't find the files but manually i can see them using file explorer.

I thought it was due to the length of the path that is more than 260 caracters long, i've tried enabling the long path registry key but it did not change anything.

Any help is appreaciated thanks

Gius95 commented 11 months ago

I solved it with theese 2 steps:

Asmoyed commented 11 months ago

Thank you very much, for your answer it worked for me also. Closing my issue as it's working