MAUI - All Apps crashing when running on IOS Emulators

Riffy 276 Reputation points
2023-01-09T22:08:23.247+00:00

Hi

All my Apps are suddenly crashing when I run them on IOS emulators with the following errors:

277510-image.png

and output:

[SceneConfiguration] Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)").

I am running VS 2022 V 17.4.3 on my PC and Code Version 14.2 on my macbook.

It appears have had same issues recently and having thried suggested solutions, non worked.

Everything was working fine before.

Any help would be appreciated.

Thanks

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,900 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,446 Reputation points Microsoft Vendor
    2023-01-10T09:12:33.18+00:00

    Hello,

    Xcode 14.2 is not supported with MAUI(see: Visual Studio 2022 version 17.4.3 Release Notes), it's recommended that you continue to use Xcode14.1. You can download Xcode 14.1 from the downloads page in the Apple Developer Portal and install it, then open Xcode, go to Preferences->Locations->Command Line Tools, select 14.1.

    Besides, this is an issue of Apple when building project via Xcode14.2, please refer to the thread at Apple's forums- Info.plist contained no UIScene co… | Apple Developer Forums. If you still want to keep Xcode 14.2(it's not supported and not recommended, it may cause some other issues), you can try to open info.plist file with source code editor and add the following key.

    <key>UIApplicationSceneManifest</key>
        <dict>
            <key>UISceneConfigurations</key>
            <dict/>
        </dict>
    

    Best Regards, Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

  2. Riffy 276 Reputation points
    2023-01-27T18:15:13.52+00:00

    The problem was to do with the following property setting with ios15.4:

    	<PropertyGroup>
    		<TargetFrameworks>net7.0-maccatalyst;net7.0-android33.0;net7.0-**ios15.4**</TargetFrameworks>
    
    

    Changing it to:

    <PropertyGroup>
    	<TargetFrameworks>net7.0-maccatalyst;net7.0-android33.0;net7.0-ios</TargetFrameworks>
    

    Solved the error. The error, which is totally meaningless occurred on both VS 2022 For Windows and MAC.

    So it's an issue with Net MAUI and not Xcode.