[iOS] Path too long for MAUI device connected deploys
See original GitHub issueEnvironment
SaaS (https://sentry.io/)
Steps to Reproduce
Setup MAUI .NET 7 service release 6 with Sentry and deploy from Visual Studio to a usb connected IPhone.
NOTE: This is a compound issue by Sentry NuGet having files in a deep folder structure and MAUI SDK tooling generating longer paths than needed.
Expected Result
Deployment to go an without error.
Actual Result
Fails with MSB3021 The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Severity Code Description Project File Line Suppression State
Error MSB3021 Unable to copy file "C:\Users\xxxx\.nuget\packages\sentry.bindings.cocoa\3.31.0\lib\net6.0-ios16.1\Sentry.Bindings.Cocoa.resources\Sentry.xcframework\ios-arm64_x86_64-simulator\dSYMs\Sentry-iPhoneSimulator.dSYM\Contents\Resources\DWARF\Sentry"
to "C:\Users\xxxx\AppData\Local\Temp\Xamarin\HotRestart\Signing\Naturoppdrag.app\out\Payload\Naturoppdrag.app\Naturoppdrag.content\Sentry.Bindings.Cocoa.resources\Sentry.xcframework\ios-arm64_x86_64-simulator\dSYMs\Sentry-iPhoneSimulator.dSYM\Contents\Resources\DWARF\Sentry"
. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Naturoppdrag C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\16.4.7054\tools\msbuild\iOS\Xamarin.iOS.HotRestart.targets 273
Product Area
Other
Link
No response
DSN
No response
Version
3.31.0
Issue Analytics
- State:
- Created 4 months ago
- Comments:19 (8 by maintainers)
Top GitHub Comments
Looking at the error message:
This seems to me different than the original issue with path too long. Seems like something in the build tried to remove the path
C:\Users\usernamehere\AppData\Local\Temp\Xamarin\HotRestart\Signing\SampleAppSentry.app\out\Payload\SampleAppSentry.app\SampleAppSentry.content\Sentry.Bindings.Cocoa.resources\Sentry.xcframework\ios-arm64\dSYMs\Sentry-iPhoneOS.dSYM\Contents\Resources\DWARF
but it choked already when it got to../out
because that didn’t exist. Probably best to create a new ticket to track that problem. And close this issue again.I’ve opened https://github.com/getsentry/sentry-dotnet/issues/2567. Closing this issue again then.