Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.
This repository was archived by the owner on May 1, 2024. It is now read-only.

Xamarin.Firebase.iOS.Core 8.10.0.1 installation error #555

Open

Description

@vivekscorp

Error Could not find a part of the path 'C:\Users\vivek.nuget\packages\xamarin.firebase.ios.core\8.10.0.1\lib\xamarinios10\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_i386_x86_64-simulator\GoogleUtilitiesComponents.framework\PrivateHeaders\GULCCComponentContainerInternal.h'.

System.IO.DirectoryNotFoundException: Could not find a part of the path 'GULCCComponentContainerInternal.h'.
at System.IO.Directory.DeleteHelper(String fullPath, String userPath, Boolean recursive, Boolean throwOnTopLevelDirectoryNotFound, WIN32_FIND_DATA& data)
at System.IO.Directory.Delete(String fullPath, String userPath, Boolean recursive, Boolean checkHost)
at NuGet.Packaging.PackageExtractor.<>c__DisplayClass5_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Common.ConcurrencyUtilities.d__51.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at NuGet.Common.ConcurrencyUtilities.<ExecuteWithFileLockedAsync>d__51.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Packaging.PackageExtractor.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.ProjectRestoreCommand.d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.Commands.ProjectRestoreCommand.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.ProjectRestoreCommand.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreCommand.d__62.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreCommand.d__45.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreRunner.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.Commands.RestoreRunner.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at NuGet.Commands.RestoreRunner.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.DependencyGraphRestoreUtility.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__86.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.NuGetPackageManager.d__73.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.<>c__DisplayClass19_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at NuGet.PackageManagement.VisualStudio.NuGetProjectManagerService.d__30`1.MoveNext()

Activity

  1. Mataboge commented on Jun 2, 2022

    @Mataboge

    I can confirm the issue

  2. sambasile commented on Jun 2, 2022

    @sambasile

    Seeing the issue on Windows 11. Path too long? Confirmed that changing my NUGET_PATH system environment variable on my computer allowed the package to install correctly. Refer to this as a temporary solution.

  3. vivekscorp commented on Jun 3, 2022

    @vivekscorp
    Author

    Hi sambasile, I can't find NUGET_PATH in my system environment variables and in the link you said to refer to. Please let me know in detail if possible.
    Thanks

  4. sambasile commented on Jun 3, 2022

    @sambasile

    Hi vivekscorp. It is not there but by adding it, you can override the default value of c:\users\_currentuser_\.nuget. In my case, I set the value to c:\Nugets which reduces the file path enough for the NuGet to install properly. I also enabled long file paths in my Group Policy. (see here) and changed the manifest of devenv.com as per the same document.

    NugetPath

  5. tranb3r commented on Jun 22, 2022

    @tranb3r

    samb (@sambasile) How exactly do you change the manifest of devenv.com ?

  6. Ruvi1996 commented on Jun 24, 2022

    @Ruvi1996

    I have the same issue

  7. sambasile commented on Jun 24, 2022

    @sambasile

    tranb3r my apologies, after reviewing I think I only changed the System Variable for the NuGet Packages

  8. tranb3r commented on Jul 4, 2022

    @tranb3r

    I've changed my NUGET_PACAKGES path.
    I'm still having this error:
    Could not find a part of the path 'C:\Nuget\xamarin.firebase.ios.cloudfirestore\8.10.0.1\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_i386_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'
    Any help ?

  9. Mataboge commented on Jul 4, 2022

    @Mataboge

    Here's what i did:

    closed visual studio

    1. in the Environment Variable, added a new path "C:\Nuget" to PATH (PATH already exists, edit and add new path)
      added "C:\Nuget" to NUGET_PATH
      added "C:\Nuget" to NUGET_PACKAGES
      (one of these actually does the trick, dunno which one)

    2. downloaded nuget.exe and moved it to the path C:\Nuget

    3. opened command window

    4. navigated to my project solution (cd ...)

    5. ran command "nuget restore project.sln" (project.sln is the name of my solution)

    NB: when ever you do a nuget clear, it will delete the nuget.exe, make sure to copy it back to the folder when you need to do a restore from the command line.

    NB: if your restore does not restore and says all projects up to date, make sure to run a nuget clear all and move back the nuget.exe and do a restore again

  10. Ruvi1996 commented on Jul 4, 2022

    @Ruvi1996

    Increasing the path length limitation (MAX_PATH) solved the issue for me.
    Here’s how

  11. tranb3r commented on Jul 4, 2022

    @tranb3r

    Well, even if I increase the MAX_PATH in the registry, change the NUGET_PACKAGES path to shorten it, use the latest nuget.exe to download packages from command-line, I still end up with this exception in VS:

    System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Nuget\xamarin.firebase.ios.cloudfirestore\8.10.0.1\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_i386_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb\client_load_reporting_filter.h'.
       at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
       at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
       at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
       at System.IO.File.Create(String path)
       at NuGet.Packaging.StreamExtensions.Testable.MmapCopy(Stream inputStream, String fileFullPath, Int64 size)
       at NuGet.Packaging.StreamExtensions.Testable.CopyToFile(Stream inputStream, String fileFullPath)
       at NuGet.Packaging.PackageFileExtractor.ExtractPackageFile(String source, String target, Stream stream)
       at NuGet.Packaging.PackageArchiveReader.CopyFiles(String destination, IEnumerable`1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken token)
       at NuGet.Packaging.PackageReaderBase.CopyFilesAsync(String destination, IEnumerable`1 packageFiles, ExtractPackageFileDelegate extractFile, ILogger logger, CancellationToken cancellationToken)
       at NuGet.Packaging.PackageExtractor.<>c__DisplayClass5_0.<<InstallFromSourceAsync>b__0>d.MoveNext()
    

    And of course, the mentioned file DOES exist in the filesystem.

  12. tranb3r commented on Jul 19, 2022

    @tranb3r

    Israel Soto (@SotoiGhost) I would really appreciate some help from the team... Thanks.

  13. RSaundersInfo commented on Jul 23, 2022

    @RSaundersInfo

    Getting the same error as tranb3r. My "C:\Nugets\xamarin.firebase.ios.cloudfirestore\8.10.0.1\lib\net6.0-ios15.4\Firebase.CloudFirestore.resources\grpcpp.xcframework\ios-arm64_i386_x86_64-simulator\grpcpp.framework\PrivateHeaders\src\core\ext\filters\client_channel\lb_policy\grpclb" folder is empty.

    Edit: no errors installing the 8.10.0 build instead of the 8.10.0.1 build.

  14. mikequ-taggysoft commented on Jul 23, 2022

    @mikequ-taggysoft

    Is this going to be fixed on the source side with the next version (i.e., package maintainers shorten their strings)? Or we must manually change Nuget env variables etc to make this package work going forward? I'd hope it's the former case here.

  15. Silv-1 commented on Aug 4, 2022

    @Silv-1

    Here is what fixed the issue for me

    1. Close Visual Studio
    2. Open cmd/PowerShell
    3. Change directory to the path of the project
    4. Execute dotnet restore
    5. Open Visual Studio again
  16. 29 remaining items

  17. khalil2099 commented on Jan 21, 2024

    @khalil2099

    Is there any chance for those who (like me) have tried all of the above and still can't build because of this package dependency? Created the nuget_packages variable as "c:\N" , chose "c:\b" as output build folder, did a dotnet restore, installed the package (Plugin.Firebase) through command line, enabled long paths (which VS seems to ignore at least on Win11)... is it ever possible in 2024 windows still deals with the path length limitation? Out of curiosity I've tried a "dotnet build MyApp" from shell and it correctly builds both android and ios... I'm quite lost here

    i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.

  18. BTSoft308 commented on Jan 22, 2024

    @BTSoft308

    Is there any chance for those who (like me) have tried all of the above and still can't build because of this package dependency? Created the nuget_packages variable as "c:\N" , chose "c:\b" as output build folder, did a dotnet restore, installed the package (Plugin.Firebase) through command line, enabled long paths (which VS seems to ignore at least on Win11)... is it ever possible in 2024 windows still deals with the path length limitation? Out of curiosity I've tried a "dotnet build MyApp" from shell and it correctly builds both android and ios... I'm quite lost here

    i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.

    Unfortunately that also did not work for me

  19. khalil2099 commented on Jan 23, 2024

    @khalil2099

    Is there any chance for those who (like me) have tried all of the above and still can't build because of this package dependency? Created the nuget_packages variable as "c:\N" , chose "c:\b" as output build folder, did a dotnet restore, installed the package (Plugin.Firebase) through command line, enabled long paths (which VS seems to ignore at least on Win11)... is it ever possible in 2024 windows still deals with the path length limitation? Out of curiosity I've tried a "dotnet build MyApp" from shell and it correctly builds both android and ios... I'm quite lost here

    i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.

    Unfortunately that also did not work for me

    Are you doing for Android or iOS ?

  20. BTSoft308 commented on Jan 23, 2024

    @BTSoft308

    Is there any chance for those who (like me) have tried all of the above and still can't build because of this package dependency? Created the nuget_packages variable as "c:\N" , chose "c:\b" as output build folder, did a dotnet restore, installed the package (Plugin.Firebase) through command line, enabled long paths (which VS seems to ignore at least on Win11)... is it ever possible in 2024 windows still deals with the path length limitation? Out of curiosity I've tried a "dotnet build MyApp" from shell and it correctly builds both android and ios... I'm quite lost here

    i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.

    Unfortunately that also did not work for me

    Are you doing for Android or iOS ?

    For both platforms

  21. khalil2099 commented on Jan 24, 2024

    @khalil2099

    Is there any chance for those who (like me) have tried all of the above and still can't build because of this package dependency? Created the nuget_packages variable as "c:\N" , chose "c:\b" as output build folder, did a dotnet restore, installed the package (Plugin.Firebase) through command line, enabled long paths (which VS seems to ignore at least on Win11)... is it ever possible in 2024 windows still deals with the path length limitation? Out of curiosity I've tried a "dotnet build MyApp" from shell and it correctly builds both android and ios... I'm quite lost here

    i dont know why, but after doing 'dotnet add package Plugin.MauiMTAdmob --version 1.0.4', i could compile my project.

    Unfortunately that also did not work for me

    Are you doing for Android or iOS ?

    For both platforms

    i finally got it working for both iOS and Android. what error did you get ? maybe i can help you.

  22. BTSoft308 commented on Jan 25, 2024

    @BTSoft308

    The same error caused by the too long path: "Could not copy the file 'C:\N\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.". Not only for this particular file but along with another 260 files for the same plugin.

  23. GiuseppeGiacalone commented on Jan 25, 2024

    @GiuseppeGiacalone

    C'è qualche possibilità per coloro che (come me) hanno provato tutto quanto sopra e ancora non riescono a creare a causa di questa dipendenza dal pacchetto? Creata la variabile nuget_packages come "c:\N" , scelto "c:\b" come cartella di build di output, eseguito un ripristino dotnet, installato il pacchetto (Plugin.Firebase) tramite la riga di comando, abilitato percorsi lunghi (che VS sembra ignorare almeno su Win11)... è mai possibile che nel 2024 Windows si occupi ancora della limitazione della lunghezza del percorso? Per curiosità ho provato un "dotnet build MyApp" da shell e crea correttamente sia Android che iOS... Sono abbastanza perso qui

    non so perché, ma dopo aver eseguito "dotnet add package Plugin.MauiMTAdmob --version 1.0.4", ho potuto compilare il mio progetto.

    Sfortunatamente anche questo non ha funzionato per me

    Stai facendo per Android o iOS?

    Per entrambe le piattaforme

    finalmente sono riuscito a farlo funzionare sia per iOS che per Android. che errore hai ricevuto? forse posso aiutarti.

    On Windows 10 or 11? Can you share the steps you did?

  24. BTSoft308 commented on Jan 26, 2024

    @BTSoft308

    On Windows 10 or 11? Can you share the steps you did?

    Windows 11, the project was originally in .net6 and everything was working fine, then I upgraded it to .net7 and it all began. The steps I followed were:

    • closed VS
    • enabled long path by runnnig 'New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force' on powershell as administrator then restarted windows
    • created a folder "C:\N" and then "NUGET_PACKAGES" environment variable that points there
    • ran a "dotnet restore" and "dotnet add package Plugin.Firebase --version 2.0.5" in a prompt instance opened on the project's folder
    • reopened VS and changed the project's output directory to "C:\B" to get the shortest paths possible
    • build
  25. khalil2099 commented on Jan 27, 2024

    @khalil2099

    On Windows 10 or 11? Can you share the steps you did?

    Windows 11, the project was originally in .net6 and everything was working fine, then I upgraded it to .net7 and it all began. The steps I followed were:

    • closed VS
    • enabled long path by runnnig 'New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force' on powershell as administrator then restarted windows
    • created a folder "C:\N" and then "NUGET_PACKAGES" environment variable that points there
    • ran a "dotnet restore" and "dotnet add package Plugin.Firebase --version 2.0.5" in a prompt instance opened on the project's folder
    • reopened VS and changed the project's output directory to "C:\B" to get the shortest paths possible
    • build

    if u got 'client_load_reporting_filter.h' error, this is because temporary path is long. Go to Environment Variables, and change the temp folder to c:\temp or c:\t. Restart your computer after that. the original folder is in 'C:\Users<username>\AppData\Local\Temp\Xamarin'

    once you changed that, in visual studio, go to Package Manager Console to build your project. You cant build using the GUI.

    dotnet build --framework net8.0-android

    dotnet build --framework net8.0-ios

    after build from console, you can click on Debug. it will skip build.

  26. SamuelBachar commented on Jan 29, 2024

    @SamuelBachar

    If nothing for you works you might try following (I have tried everything mentioned here and nothing helped me):

    For anyone who have still problem with long paths (size bigger than 260 characters).

    1. Check if problematic paths do contains your project name. If yes you can try to rename project name (sometimes multiple times project name is mentioned in path, make it shorter).

    2. If bin or obj files are problem you can try to set them in properties of your project under Build -> Output configuration

    3. Check if problematic path contains C:\Users\YourProfileName\AppData\Local\Temp... at the beginning, if yes there is DIRTY option to rename ENVIROMENTAL VARIABLE TEMP and TMP to something like C:\Test , BUT I needed to do RESTART of PC in order to stop copying into C:\Users\YourProfileName\AppData\Local\Temp\Xamarin\ .... this will save you certain amount of characters (BTW do backup of TEMP and TMP variables)

    4. I don't know how much it can effect other stuff if you change those variables, but I got rid of issue with MAX_SIZE (Windows 11 looks like had still problem no matter what I did)

    Combination of following might help you.
    Hope it helps.

  27. SamuelBachar commented on Jan 29, 2024

    @SamuelBachar

    The same error caused by the too long path: "Could not copy the file 'C:\N\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.". Not only for this particular file but along with another 260 files for the same plugin.

    That is only 243 characters. Could not be problem of something else ?

  28. khalil2099 commented on Jan 30, 2024

    @khalil2099

    If nothing for you works you might try following (I have tried everything mentioned here and nothing helped me):

    For anyone who have still problem with long paths (size bigger than 260 characters).

    1. Check if problematic paths do contains your project name. If yes you can try to rename project name (sometimes multiple times project name is mentioned in path, make it shorter).
    2. If bin or obj files are problem you can try to set them in properties of your project under Build -> Output configuration
    3. Check if problematic path contains C:\Users\YourProfileName\AppData\Local\Temp... at the beginning, if yes there is DIRTY option to rename ENVIROMENTAL VARIABLE TEMP and TMP to something like C:\Test , BUT I needed to do RESTART of PC in order to stop copying into C:\Users\YourProfileName\AppData\Local\Temp\Xamarin\ .... this will save you certain amount of characters (BTW do backup of TEMP and TMP variables)
    4. I don't know how much it can effect other stuff if you change those variables, but I got rid of issue with MAX_SIZE (Windows 11 looks like had still problem no matter what I did)

    Combination of following might help you. Hope it helps.

    the long path problem is not because of windows (after you enable long path). It is because of visual studio itself. If you build using command prompt (dotnet build --framework net8.0-android), it can build without errors. current im using this method. but im having other new issue with Firebase. i cant receive notification on iOS version 17. version 15 is ok.

    other expensive option you can try is to buy a mac, and use visual studio on mac. visual studio on mac doesnt have long path issue.

  29. BTSoft308 commented on Jan 30, 2024

    @BTSoft308

    Doing what Khalil said worked, now I got it to build also using the usual "right click - build". Unfortunately at this point I can't tell what "fixed" it, cause I've tried everything here and more. I've set both the project output and the nuget packages folders back to their original values, updated the project to .net8 (did a dotnet restore) and it built (to discover the buttons in my UI were not taking account of the styles) then downgraded back to .net7 (did a dotnet restore again) and it kept building. Thanks everybody for your help and support.

  30. ts69repo commented on Feb 18, 2024

    @ts69repo

    I installed Google.MobileAds first and then the plugin would install

  31. tuyen-vuduc commented on Apr 4, 2024

    @tuyen-vuduc

    It's still shown up in my Windows machine.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions