skip to Main Content

I am trying to implement and compile with Visual Studio 2022 in Windows 11 with push notifications in my MAUI application for both Android and iOS.

I receive the following error when building:

Unable to copy file "D:pxamarin.firebase.ios.installations8.10.0.3libnet6.0-ios15.4Firebase.Installations.resourcesFirebaseInstallations.xcframeworkios-arm64_x86_64-simulatorFirebaseInstallations.frameworkHeadersFIRInstallationsErrors.h" to "binDebugnet8.0-iosiossimulator-x64Firebase.Installations.resourcesFirebaseInstallations.xcframeworkios-arm64_x86_64-simulatorFirebaseInstallations.frameworkHeadersFIRInstallationsErrors.h". Could not find a part of the path ‘binDebugnet8.0-iosiossimulator-x64Firebase.Installations.resourcesFirebaseInstallations.xcframeworkios-arm64_x86_64-simulatorFirebaseInstallations.frameworkHeadersFIRInstallationsErrors.h’

I have already a custom Nuget configuration with a minimal path (D:p), enabled long paths in the registry and in the ‘Local Group Policy Editor’.

Tried to implement Plugin.Firebase –> path too long.

Tried to implement Plugin.Firebase.CloudMessaging and Plugin.Firebase.Core –> can’t build without errors, because the path is too long.

2

Answers


  1. Chosen as BEST ANSWER

    Solved It by changing the bin, obj and nuget packages paths to D:b, D:o, D:p. Now I have installed and implemented Plugin.Firebase.CloudMessaging and Plugin.Firebase.Core and can compile without problems


  2. Solution Here : I Have same issue on the Windows machine. while rebuild the android and iOS platform of my project with 286 Error.

    But I’m getting this resolved the One line of code that the TargetFrameworks to Android only when rebuild code on the Windows machine.

    .csproj file add the targetproject to only Android for windows.

    **<TargetFrameworks>net7.0-android;</TargetFrameworks>**
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search