UIUserInterfaceStyle key invalid

I tried to validate an app in Xcode 10.3, and got an error:


Invalid Info.plist Key. The key 'UIUserInterfaceStyle' in the Payload/AppName.appInfo.plist file is not valid.


No problem yesterday with the same key.

Replies

I can confirm when built with Xcode 10.2 removing the key, forces light mode. However, building with Xcode 11 automatically enrolls you in dark mode. My build server is using Xcode 10.2 and removing the key allows it to be published and forces light mode. "For now"

Me too!!!

I'm using xcode 10.2 and I don't even have an iOS13 device to test dark mode! (iPhone5s won't get iOS 13)

I had to remove this key.

I'm about to upload my app to app store, god bless me.

Any update here? We want to opt out of dark mode for now, but also want to continue testing our app...

Don't include the new UIUserInterfaceStyle key when submitting your app with XCode 10. When run on an iOS 13 device, it will work in Light Mode only. Use TestFlight to install your app on an iOS 13 device.


Only add the UIUserInterfaceStyle key when using XCode 11.

I'm also having the same issue.
I think maybe we have misunderstood the usage of this key. In the docs they've mentioned that it is only for tvOS.