Skip to content

ILLink : error IL1011: Failed to write 'obj/Release/net9.0-ios/ios-arm64/linked/Microsoft.iOS.dll' #24663

@desunit

Description

@desunit

Apple platform

iOS

Framework version

net10.0-*

Affected platform version

.NET 10.0.102, .NET 9.0.300

Description

I'm trying to build IPA but always getting the error:

    ILLink : error IL1011: Failed to write 'obj/Release/net9.0-ios/ios-arm64/linked/Microsoft.iOS.dll'.
    /Users/sergeybogdanov/.nuget/packages/microsoft.net.illink.tasks/9.0.12/build/Microsoft.NET.ILLink.targets(96,5): error NETSDK1144: Optimizing assemblies for size failed.

command line:

dotnet publish "$CSPROJ" \
  -f net10.0-ios \
  -c Release \
  -p:ArchiveOnBuild=true \
  -p:BuildIpa=true \
  -p:CodesignKey="Apple Distribution: ...." \
  -p:CodesignProvision="Apps" \
  /bl:msbuild.binlog

Tried 9.0 and 10.0, still the same problem.

Steps to Reproduce

Change csproj to <MtouchLink>SdkOnly</MtouchLink>

Did you find any workaround?

<MtouchLink>none</MtouchLink> fixes the problem, but the binary becomes huge.

Build logs

msbuild.binlog.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fix

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions