Skip to content

"IL Trimmer has encountered an unexpected error" while deploying iOS MAUI app #24073

@Indyy66

Description

@Indyy66

Description

This issue is with VS2026 preview version Insiders [11116.177]. When I try to deploy iOS versions of the .NET Maui application, I receive the following errors. I have tried to use this with iPhone 17 26.0, iPhone 16 iOS Pro Max 18.6, iPhone 16 iOS Pro 18.6, and iPhone 16 iOS Plus 18.6.

IL Trimmer has encountered an unexpected error. Please report the issue at https://aka.ms/report-illink

MessagingRemoteException: An error occurred on client Build2609752 while executing a reply for topic xvs/build/26.0.9752/execute-task/MauiKit/b1b110d002fAOTCompile
MessagingException: Could not find file '/Users/Administrator/Library/Caches/maui/PairToMac/Builds/MauiKit/b1b110de5f352559ffd435bdf3d99faf8ea2064e0faa02a62389bfcf9d90b86d/obj/Debug/net9.0-ios/iossimulator-x64/linked/System.Private.CoreLib.dll'.

I am properly connected to my MacBook, and I don't experience this issue with VS2022.

Reproduction Steps

Create a new application and try to run it on any iOS simulator.

Expected behavior

The build should deploy and launch the application on the mentioned simulators.

Actual behavior

It fails to launch with stated errors.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need-infoWaiting for more information before the bug can be investigated

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions