-
Notifications
You must be signed in to change notification settings - Fork 549
Closed
Labels
binding-projectsIssue or PR that affects binding projectsIssue or PR that affects binding projectsregressionThe issue or pull request is a regressionThe issue or pull request is a regression
Milestone
Description
See #23101 for the diagnostic part of this.
The task can run into MAX_PATH on Windows, when executed from within VS:
Failed to resolve the xcframework Sentry-Dynamic.xcframework in C:\Users\nicho.nuget\packages\sentry.bindings.cocoa\5.5.1\lib\net8.0-ios17.0\Sentry.Bindings.Cocoa.resources.zip due to an unexpected error: Could not find a part of the path 'C:\Users\me\source\repos\MyLongSolutionName\MyLongProjectName\obj\Release\net9.0-ios\ios-arm64\Sentry.Bindings.Cocoa.resources.zip\Sentry-Dynamic.xcframework\ios-arm64_arm64e\Sentry.framework\Modules\Sentry.swiftmodule\arm64e-apple-ios.swiftinterface'.
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : DirectoryNotFoundException: Could not find a part of the path 'C:\Users\me\source\repos\MyLongSolutionName\MyLongProjectName\obj\Release\net9.0-ios\ios-arm64\Sentry.Bindings.Cocoa.resources.zip\Sentry-Dynamic.xcframework\ios-arm64_arm64e\Sentry.framework\Modules\Sentry.swiftmodule\arm64e-apple-ios.swiftinterface'.
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : 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)
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at System.IO.File.OpenWrite(String path)
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at Xamarin.MacDev.CompressionHelper.TryDecompressUsingSystemIOCompression(TaskLoggingHelper log, String zip, String resource, String decompressionDir, Nullable`1 cancellationToken) in /Users/builder/azdo/_work/2/s/macios/msbuild/Xamarin.MacDev.Tasks/Decompress.cs:line 225
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at Xamarin.MacDev.CompressionHelper.TryDecompress(TaskLoggingHelper log, String zip, String resource, String decompressionDir, List`1 createdFiles, Nullable`1 cancellationToken, String& decompressedResource) in /Users/builder/azdo/_work/2/s/macios/msbuild/Xamarin.MacDev.Tasks/Decompress.cs:line 108
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error : at Xamarin.MacDev.Tasks.ResolveNativeReferences.TryResolveXCFramework(TaskLoggingHelper log, String targetFrameworkMoniker, Boolean isSimulator, String architectures, String resourcePath, String xcframework, String intermediateDecompressionDir, List`1 createdFiles, Nullable`1 cancellationToken, String& nativeLibraryPath) in /Users/builder/azdo/_work/2/s/macios/msbuild/Xamarin.MacDev.Tasks/Tasks/ResolveNativeReferences.cs:line 434
4>C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net9.0_18.5\18.5.9213\tools\msbuild\Xamarin.Shared.targets(153,3): error
(from #23101 (comment)).
bruno-garcia, sebfrie, dazzknowles and joseluisct
Metadata
Metadata
Assignees
Labels
binding-projectsIssue or PR that affects binding projectsIssue or PR that affects binding projectsregressionThe issue or pull request is a regressionThe issue or pull request is a regression