[mono][ios] Add support for stripping during AOT compilation on iOS#87728
Conversation
…ing AOT compilation on iOS
|
Tagging subscribers to this area: @directhex Issue DetailsThis PR adds support for stripping debug symbols and enabling IL stripping during AOT compilation of the HelloiOS sample app.
This PR should resolve the reported SOD regression.
|
|
@steveisok, I noticed the commented |
I think there was a problem running it on libraries, but does not appear an issue was logged. Try to enable on libraries and see what we get. |
ivanpovazan
left a comment
There was a problem hiding this comment.
LGTM!
Nit:
One small thing worth considering is adding in some top level import (like AppleBuild.props) a default value for StripDebugSymbols like:
<StripDebugSymbols Condition="'$(StripDebugSymbols)' == ''" >false</StripDebugSymbols>
I didn't find it being set anywhere except in the Makefile of the project.
|
A slightly off-topic comment, but related to HelloiOS SOD regressions: There was also a regression reported with NativeAOT. However, the regression is justified, as for NativeAOT builds we were using feature switch This has been fixed in the mentioned change: 2835110#diff-41016a8344332e64360007e06a117aa072eac2efe3e0e0109ce27d5466695dccL17-L18 /cc: @SamMonoRT |
|
/azp run runtime-ioslike,runtime-ioslikesimulator |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
/azp run runtime-ioslike,runtime-ioslikesimulator |
|
Azure Pipelines successfully started running 2 pipeline(s). |
|
Some of the failures are reported in #73040 and shouldn't be related. |
Yeah we had problems with ActiveIssue attributes not being retained so we disabled ILStrip a while ago in #59762 I think the underlying issue could have been fixed by #87923 |

This PR adds support for stripping debug symbols and enabling IL stripping during AOT compilation of the HelloiOS sample app.
StripSymbolTable="$(StripDebugSymbols)"to theAppleBuild.targetsfile.<ShouldILStrip Condition="'$(RunAOTCompilation)' == 'true' and '$(MonoForceInterpreter)' != 'true'">true</ShouldILStrip>to theProgram.csprojfile.This PR should resolve the reported SOD regression.
