Closed JawadJaber closed 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
Hi, thank you for your feedback. Are you able to post any relevant crash logs from Apple?
Hi, thank you for your feedback. Are you able to post any relevant crash logs from Apple?
The strange thing in this case is that no crash reports are showing in any of Apple crash locations. Even I could not catch the exception in anyway.
The original post was about serialization and deserialization crash in TestFlight version. I encountered a similar situation. The problem was with the trimming. I fixed it by rooting System.Private.CoreLib.dll, done adding this in the project:
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios' And '$(Configuration)'=='Release'">
<TrimmerRootAssembly Include="System.Private.CoreLib" />
</ItemGroup>
Other assemblies might be needed.
The original post was about serialization and deserialization crash in TestFlight version. I encountered a similar situation. The problem was with the trimming. I fixed it by rooting System.Private.CoreLib.dll, done adding this in the project:
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-ios' And '$(Configuration)'=='Release'"> <TrimmerRootAssembly Include="System.Private.CoreLib" /> </ItemGroup>
Other assemblies might be needed.
Thanks for your feedback, I just tried your proposed solution and it worked! I am able to do serialization/deserialization with version 8.0.90
@rolfbjarne Could this be an issue with the Interpreter and/or runtime? If you're building on different runtimes and/or iOS Workloads and now you need to enable TrimmerRootAssembly
for CoreLib where you didn't need to before, that seems like it could be suspect.
@rolfbjarne Could this be an issue with the Interpreter and/or runtime? If you're building on different runtimes and/or iOS Workloads and now you need to enable
TrimmerRootAssembly
for CoreLib where you didn't need to before, that seems like it could be suspect.
One possible scenario is that the code isn't trimmer safe, yet it's still trimmed. It's not unfeasible this code may have worked in the past, but doesn't anymore ("not trimmer safe" means that trimming results may be unpredictable and may change between releases).
OK looks like this is fixed, thanks all!
Description
I reported an issue before and now it is repeated #9597 , I have faced the same issue before and you advised to user interpreter to fix it. That was working great during the past two years. However, with latest updates the app crashes at the same point only after I released the app in the app store or in TestFlight.
Pls note that I have verified the case with iOS17.5 and iOS18
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
8.0.90, 8.0.82, 8.0.20
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.6 SR1
Affected platforms
iOS
Affected platform versions
iOS 17.5, iOS18
Did you find any workaround?
No response
Relevant log output