xcode

Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")?


Info.plist contained no UIScene configuration dictionary (looking for configuration named "(no name)")?

Upgraded Xcode 14.1 -> 14.2 and got this brand new error.

Console Error

In my Project editor, selected Target on left and then "Build Settings" on top.

Build Settings

Here's what the Finder shows:

enter image description here

Tried this Key 1st:

1st Key

Error does not go away.

Then this 2nd Key:

2nd Key

Error still there.

What simple something am I missing?

Thanks bunches.

EDIT

I have my info.plist.file in the same Folder as my .xcodeproj file and indications on my end indicate that this the correct location So, it appears that my error is in the content of my .plist File.

I initially set the key = UISceneConfigurationDictionaryName with content Type = String.

Of particular note is the (no name) value.

Then I set the key = UISceneConfigurationDictionary with content Type = Dictionary.

Same Error.

Puzzling to me is that the drop-down list of Keys does not contain any "UIScene".

Can't prove it, but I believe that this void in the drop-down list is at the heart of my problem.


Solution

  • I just experienced the same issue and found the fix, at least, for me:

    I added the UISceneConfigurations key (inside the UIApplicationSceneManifest dictionary) and its value as an empty dictionary, like this:

        <key>UIApplicationSceneManifest</key>
        <dict>
            <key>UIApplicationSupportsMultipleScenes</key>
            <true/>
            <key>UISceneConfigurations</key>
            <dict/>
        </dict>
    

    Note, if your app does not support multiple scenes (i.e. multiple windows or screens), then this is sufficient (and may avoid a strange black screen!):

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

    enter image description here

    It compiled and ran successfully without the warning in the debug console, and also automatically removed this key from the project.pbxproj file:

    enter image description here

    I hope it helps.