xamarin / xamarin-macios

.NET for iOS, Mac Catalyst, macOS, and tvOS provide open-source bindings of the Apple SDKs for use with .NET managed languages such as C#
Other
2.49k stars 515 forks source link

FSharpiOSCoolApp (.NET) fails submission test due to ILSTrip #13526

Closed chamons closed 2 years ago

chamons commented 2 years ago

The "FSharpiOSCoolApp (.NET)" submission test is failing for me with:

/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/pt-BR/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/it/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/zh-Hant/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/ru/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/ja/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/ko/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/tr/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
/Users/donblas/Programming/xamarin-macios/builds/downloads/dotnet-sdk-6.0.101-servicing.21567.21-osx-x64/packs/Microsoft.iOS.Sdk/15.0.101-preview.12.654/targets/Xamarin.Shared.Sdk.targets(659,3): error : ILStrip failed for /Users/donblas/Programming/xamarin-macios/tests/dotnet/packages/fsharp.core/6.0.1/lib/netstandard2.1/pl/FSharp.Core.resources.dll: The process cannot access the file '/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/obj/iPhone/Release/net6.0-ios/ios-arm64/stripped/FSharp.Core.resources.dll' because it is being used by another process. [/Users/donblas/Programming/SubmissionSamples/FSharpiOSCoolApp/dotnet/FSharpiOSCoolApp.fsproj]
    0 Warning(s)
    8 Error(s)

Steps to Reproduce

  1. Run submission tests
  2. 🔥 FSharpiOSCoolApp (.NET) (ios)

Expected Behavior

Act just like legacy version.

Actual Behavior

Build errors (8).

Environment

8fc41ae827657721729ca219668a75271f2e0bcb in https://github.com/xamarin/xamarin-macios/commits/xcode13.2

Build Logs

msbuild.binlog.zip

rolfbjarne commented 2 years ago

Looks like the ILStrip target doesn't take into account that the same assembly can exist in multiple directories (for resource assemblies), and tries to write them all to the same output directory.

rolfbjarne commented 2 years ago

The same thing happens to the monotouch-test / Mac Catalyst [dotnet] / Release (ARM64, LLVM) [dotnet] test