Skip to content

dotnet-watch requires MtouchLink=None for iOS Simulator projects #25295

@jonathanpeppers

Description

@jonathanpeppers

Description

dotnet watch does not work for iOS projects unless <MtouchLink>None</MtouchLink> is explicitly set in the .csproj file.

Without this setting, dotnet watch fails to work properly on iPhone Simulator builds.

Steps to Reproduce

  1. Create a new .NET iOS project
  2. Run dotnet watch targeting an iPhone Simulator
  3. Observe that it does not work

Workaround

Add the following to your .csproj:

<PropertyGroup>
  <MtouchLink>None</MtouchLink>
</PropertyGroup>

Proposal

We should consider making MtouchLink=None the default for Debug iPhone Simulator builds, since linking is not typically needed in that configuration and it blocks dotnet watch from working.

This would improve the inner development loop experience without affecting Release or device builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    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