Closed jbe2277 closed 3 months ago
I can reproduce the slowness, but not the crash. The crash might be due to excessive memory consumption though, in which case that might not happen on my machine.
However, there's a major difference between the two builds: the working build builds using the RuntimeIdentifier iossimulator-x64
, while the failing one builds using the RuntimeIdentifier iossimulator-arm64
. This is probably due to changing the GitHub runner (the default RuntimeIdentifier depends on the architecture of the Mac: on arm64 macs we build for iossimulator-arm64
by default, otherwise iossimulator-x64
).
There are a couple of things coming together here:
Microsoft.Graph.dll
is a rather big assembly, so the AOT compiler has to do a lot of work. This is why the build takes so long. There are a couple of potential fixes:
<PropertyGroup>
<UseInterpreter>true</UseInterpreter>
</PropertyGroup>
<PropertyGroup>
<MtouchLink>SdkOnly</MtouchLink>
</PropertyGroup>
Can you try either of these and see if it works?
I have enabled the trimmer - this solved the issue.
I have enabled the trimmer - this solved the issue.
Great, I'll close this then. Thanks for confirming!
Steps to Reproduce
Expected Behavior
Build should succeed. The GitHub project has an action that builds the iOS version. This takes about 3 minutes.
Successful build:
Actual Behavior
GitHub runner goes for about 3 hours to build the iOS version. Result:
Changes from the successful build to the actual one
Related issues