Skip to content

Deploying to iOS crashes with System.IO.FileNotFoundException #14011

@Varmod

Description

@Varmod

I've made a Maui app and developed it using the android emulator where it runs without a problem. However when trying to deploy the app to my iPhone the app crashes during the App class's InitializeComponent() with the error System.IO.FileNotFoundException: "System.Private.CoreLib.resources" before it terminates.

To make things even stranger, when I open the source code on my mac and try to deploy from there the code won't even build. App.xaml throws errors "XLS0414: The type 'Color' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built."

I've tried looking into the possibility of a missing reference but Microsoft.Maui.Graphics looks like a core assembly so I'm not sure how I would be able to remove it the first place.

I've also tried all the standard things like cleaning the solution and rebuilding. Also I created a new project where I migrated all my code in case the issue was from upgrading the project from maui6 to 7, but that didn't help either.


VisualStudio Version 17.5.1 (17.5.2 on Mac)
Maui ios 16.2.1024/7.0.100 (16.2.1040/7.0.100 on Mac)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-publishingIssues with the app packaging/publishing process (ipk/apk/msix/trimming)platform/ioss/needs-attentionIssue has more information and needs another looks/triagedIssue has been revieweds/try-latest-versionPlease try to reproduce the potential issue on the latest public versiont/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions