Skip to content

[clr-ios] Run Apple mobile apps using CoreCLR #120042

@kotlarmilos

Description

@kotlarmilos

Goal

The primary goal is to enable Apple mobile apps (iOS, tvOS, MacCatalyst) to run on the CoreCLR interpreter with R2R images. Since runtime codegen/JIT is not allowed on Apple devices, this work ensures that .NET mobile apps can run precompiled IL through the interpreter and R2R. Our objective is to make interpreter with R2R production-ready across all Apple mobile platforms, with full support for MAUI.

Plan

This project is divided into five user stories.

Interpreter

Enable CoreCLR interpreter to run precompiled IL with R2R on Apple mobile devices, including reflection, must-expand intrinsics, hardware intrinsics, and Swift calling convention.

Tasks:

R2R

Extend Crossgen2 and the runtime loader to emit and consume Mach-O object files for Apple mobile.

Tasks:

SDK

Produce and integrate runtime packs for Apple RIDs (iOS, tvOS, MacCatalyst), ensuring MAUI workloads build and run with interpreter + R2R.

Tasks:

Testing

Run functional and performance tests for interpreter + R2R across devices and simulators, covering runtime, SDK, and MAUI.

Tasks:

Diagnostics

Extend the debugger to support interpreter stack frames and improve diagnostic tooling on Apple mobile.

Tasks:

Metadata

Metadata

Assignees

Labels

EpicGroups multiple user stories. Can be grouped under a theme.area-CodeGen-Interpreter-coreclros-iosApple iOStrackingThis issue is tracking the completion of other related issues.

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions