maui: Maui - some nugets do not work as path is too long "Could not find a part of the path"
Description
Using the Xamarin.Firebase.iOS.CloudMessaging nuget in .NET Maui. Android works fine, but in iOS we get this error. I believe it is because the file path is too long - however I have set the system settings to enable long paths and still get this exception. I am using Windows 10 if that is relevant.
**An error occurred while trying to deploy the app ‘SamplePush.app’. Details: Could not find a part of the path
‘C:\Users\username\AppData\Local\MyTempFiles\Xamarin\HotRestart\Signing\SamplePush.app\out\Payload\SamplePush.app\SamplePush.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64\FirebaseMessaging.framework\Headers\FirebaseMessaging-umbrella.h’.**
I changed my temp file location to be shorter C:\tmp but still get the following:
**An error occurred while trying to deploy the app ‘SamplePush.app’. Details: Could not find a part of the path
‘C:\Tmp\Xamarin\HotRestart\Signing\SamplePush.app\out\Payload\SamplePush.app\SamplePush.content\Firebase.Core.resources\GoogleUtilitiesComponents.xcframework\ios-arm64_x86_64-simulator\GoogleUtilitiesComponents.framework\Headers\GoogleUtilitiesComponents-umbrella.h’**
Steps to Reproduce
- Download Xamarin.Firebase.iOS.CloudMessaging nuget in a new maui app.
- Try and debug in ios and see exception.
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
An error occurred while trying to deploy the app 'SamplePush.app'. Details: Could not find a part of the path
'C:\Users\username\AppData\Local\MyTempFiles\Xamarin\HotRestart\Signing\SamplePush.app\out\Payload\SamplePush.app\SamplePush.content\Firebase.CloudMessaging.resources\FirebaseMessaging.xcframework\ios-arm64\FirebaseMessaging.framework\Headers\FirebaseMessaging-umbrella.h'.
About this issue
- Original URL
- State: open
- Created 9 months ago
- Reactions: 1
- Comments: 22 (7 by maintainers)
This doesn’t work for the firebase package as the filenames are far too long, so just shortening the package cache isn’t enough.
Get Outlook for Androidhttps://aka.ms/AAb9ysg
From: SEONG-AHN LEE @.> Sent: Friday, December 8, 2023 9:47:27 PM To: dotnet/maui @.> Cc: Mark Radcliffe @.>; Mention @.> Subject: Re: [dotnet/maui] Maui - some nugets do not work as path is too long “Could not find a part of the path” (Issue #17828)
C: Create a folder “X” on drive root, copy all the files and folders underneath the solution folder, and build and deploy it.
— Reply to this email directly, view it on GitHubhttps://github.com/dotnet/maui/issues/17828#issuecomment-1846782469, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAJD3T6SHUYVHGUKZ3WFDV3YILHZ7AVCNFSM6AAAAAA5SWEMSGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBWG44DENBWHE. You are receiving this because you were mentioned.Message ID: @.***>
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
CAUTION: This correspondence is confidential and intended for the named recipient(s) only. If you are not the named recipient and receive this correspondence in error, you must not copy, distribute or take any action in reliance on it and you should delete it from your system and notify the sender immediately. Unless otherwise stated, any views or opinions expressed are solely those of the author and do not represent those of Blackhawk Tracking Systems Limited.
Yes, I agree with you. What affects us is anything that touches the VS scope, however I was trying to picture the areas affected by this long path issue, independently of VS, just for context purposes.