[ios] HelloiOS - Set RunAOTCompilation only on Mono#124265
Merged
davidnguyen-tech merged 2 commits intodotnet:mainfrom Feb 19, 2026
Merged
[ios] HelloiOS - Set RunAOTCompilation only on Mono#124265davidnguyen-tech merged 2 commits intodotnet:mainfrom
davidnguyen-tech merged 2 commits intodotnet:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR restores the /p:RunAOTCompilation=false flag to the HelloiOS sample build and publish commands in the CoreCLR iOS documentation. The flag was inadvertently removed in PR #124230 but is necessary to prevent build failures when using CoreCLR on iOS.
Changes:
- Added
/p:RunAOTCompilation=falseto thedotnet.sh buildcommand for the HelloiOS sample - Added
/p:RunAOTCompilation=falseto thedotnet.sh publishcommand for the HelloiOS sample
Contributor
|
Tagging subscribers to 'os-ios': @vitek-karas, @kotlarmilos, @steveisok, @akoeplinger |
Member
Author
|
/ba-g Markdown changes |
Member
|
Thanks. I suggest to add condition to the sample project instead: <RunAOTCompilation Condition="'$(RunAOTCompilation)' == '' and '$(UseMonoRuntime)' == 'true'">true</RunAOTCompilation> |
Member
Author
|
/ba-g Markdown changes |
kotlarmilos
approved these changes
Feb 12, 2026
|
Azure Pipelines successfully started running 1 pipeline(s). |
This was referenced Feb 18, 2026
Open
This was referenced Feb 18, 2026
APP_CRASH SIGABRT during coreclr_initialize on tvOS device (vm_map_enter allocation failure)
#123396
Open
Member
Author
|
/ba-g Irrelevant failures |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When we have
/p:RunAOTCompilation=trueand/p:UseMonoRuntime=false,dotnet publishfails with anILStriperror because it routes the CoreCLR build through Mono's AOT-related targets that produce an empty assemblies list for ILStrip.Because of that, we fix the HelloiOS sample to default to
/p:RunAOTCompilation=trueonly on Mono.