dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.29k stars 4.74k forks source link

iOS "dotnet" exited with code 150. (MSB6006) #108735

Open gwise-vision opened 1 month ago

gwise-vision commented 1 month ago

Description

Error Message : Microsoft.NET.ILLink.Tasks: Compilation error occurs in version 8.0.10. (For Mac VS2022, iOS, Xcode 16)

/Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error MSB6006: "dotnet" exited with code 150. (MSB6006) (ExpiryDateScanner.iOS) /Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. (NETSDK1144) (ExpiryDateScanner.iOS)

Reproduction Steps

iOS For Mac VS2022 Microsoft.NET.ILLink.Tasks : 8.0.10 -> Error Microsoft.NET.ILLink.Tasks : 8.0.8 -> OK

VS 2022 For Mac, iOS, Xcode 16 Microsoft.NET.ILLink.Tasks: 8.0.8 works fine, but Microsoft.NET.ILLink.Tasks: 8.0.10 causes a compilation error.

Expected behavior

/Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error MSB6006: "dotnet" exited with code 150. (MSB6006) (ExpiryDateScanner.iOS) /Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. (NETSDK1144) (ExpiryDateScanner.iOS)

Actual behavior

/Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error MSB6006: "dotnet" exited with code 150. (MSB6006) (ExpiryDateScanner.iOS) /Users/gwise/.nuget/packages/microsoft.net.illink.tasks/8.0.10/build/Microsoft.NET.ILLink.targets(5,5): Error NETSDK1144: Optimizing assemblies for size failed. Optimization can be disabled by setting the PublishTrimmed property to false. (NETSDK1144) (ExpiryDateScanner.iOS)

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to this area: @agocke, @sbomer, @vitek-karas See info in area-owners.md if you want to be subscribed.