Error on uploading -UIUserInterfaceStyle can’t be ''. It can only be 'Light', 'Dark', or 'Automatic'

UIUserInterfaceStyle can’t be ''. It can only be 'Light', 'Dark', or 'Automatic'. Learn more (https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW44)."

While I am uploading my app I got this kind of error. I have no idea to solve this.Please recommend me any other solution ?

Thank you..!

Answered by Claude31 in 691420022

Could you show your info.plist ?

It could be you have created (by mistake ?) a key UIUserInterfaceStyle but did not define any content for it.

Look at info.plist and search for:

or

If there is nothing in the String, you should add light or dark.

Or have you defined an appearance property in your code that is not correct ?

Accepted Answer

Could you show your info.plist ?

It could be you have created (by mistake ?) a key UIUserInterfaceStyle but did not define any content for it.

Look at info.plist and search for:

or

If there is nothing in the String, you should add light or dark.

Or have you defined an appearance property in your code that is not correct ?

Thank you for your response Claude I can’t able to find UIUserInterface style in Plist

Error on uploading -UIUserInterfaceStyle can’t be ''. It can only be 'Light', 'Dark', or 'Automatic'
 
 
Q