Skip to content

iOS app crashes randomly on startup #21485

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:I'm unable to use this version]
I am experiencing random startup crashes of iOS app when run on Simulator. This has been happening on all versions of .NET 8/9 I have tested, and can be reproduced via both VS and VS Code. The app usually starts up correctly several times, but on a subsequent build it starts crashing immediately after deploy and the only quite reliable way to fix it is to uninstall it from Simulator, git clean, and rebuild completely.

I attached the native crash dump below in errorreport.txt.

I made a recording of the issue below, which shows I ran the app, and it immediately crashed. Then I uninstalled it and rebuilt the slnf, and then ran again - which made the app run fine again. This sort of random behavior is what I am encountering with this issue.

Repro steps:

  1. Clone https://github.com/unoplatform/uno
  2. In src folder rename crosstargeting_override.props.sample to crosstargeting_override.props
  3. In the crosstargeting_override.props file uncomment prop and set it to net8.0-ios
  4. Open Uno.UI-netcoremobile-only.slnf and try to run SamplesApp.netcoremobile on iOS Simulator
  5. If it runs successfully, stop debugging, and make a small change like a debug writeline somewhere
  6. After several tries you should see the app crash immediately on startup

Original Comments

Feedback Bot on 10/12/2024, 04:43 AM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 10/18/2024, 09:44 PM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIf an issue is a bug or a pull request a bug fixmsbuildIssues affecting our msbuild tasks/targets

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions