1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00

iOS: Update Info.plist generation to include UIApplicationSceneManifest

This suppresses the "Info.plist contained no UIScene configuration
dictionary" warning, raised at runtime in the Xcode console.
This commit is contained in:
reuk 2025-07-29 13:24:14 +01:00
parent 0c2d55c7dd
commit 2cbcbc8882
No known key found for this signature in database
5 changed files with 37 additions and 0 deletions

View file

@ -9,6 +9,13 @@
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>

View file

@ -11,6 +11,13 @@
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>

View file

@ -165,6 +165,15 @@ namespace juce::build_tools
if (shouldAddStoryboardToProject)
addPlistDictionaryKey (*dict, "UILaunchStoryboardName", storyboardName);
XmlElement sceneManifestKey ("key");
sceneManifestKey.addTextElement ("UIApplicationSceneManifest");
dict->addChildElement (new XmlElement (sceneManifestKey));
auto* sceneManifestDict = dict->createNewChildElement ("dict");
addPlistDictionaryKey (*sceneManifestDict, "UIApplicationSupportsMultipleScenes", false);
addKeyIfNotFound (*sceneManifestDict, "UISceneConfigurations");
sceneManifestDict->createNewChildElement ("dict");
}
else
{

View file

@ -9,6 +9,13 @@
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict/>
</dict>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>