Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Invalid info.plist - UIMainStoryboardFile or NSMainNibFile when sending an app to app store

While sending an app to the app store I received a message stating:

"Invalid info.plist: the info.plist may contain either UIMainStoryboardFile or NSMainNibFile, but must not contain both keys"

After googling around it seems the consensus is to set the "main nib file base name" to "MainWindow" and also to set the "main storyboard file base name" to "MainStoryboard_iPAd". Both options we already have.

The app is designed to run on both iPad and iPhone and the app contains two storyboard files, one for ipad and one for iphone. I cannot find any visible .nib or .xib to manipulate even if I found the correct answer.

Does anyone have any hints on how to work around/fix this so the app will send?

Thanks heaps!

like image 264
bldysnw Avatar asked Apr 18 '13 12:04

bldysnw


2 Answers

Here is what helped me resolve this issue. Delete the NIB entry, leaving only the other entry.

enter image description here

like image 166
watr Avatar answered Sep 21 '22 00:09

watr


Unfortunately, @verbumdei's answer did not work for me.

I was trying to turn an iPhone-only project to Universal in iOS 7 and it wasn't working. The iPad's storyboard wasn't being read.

What happened was that Xcode added a key to my .plist that was "Main nib file base name (iPad)". I had to delete that key and add "Main storyboard file base name (iPad)", then set the filename to my storyboard's (i.e. Storyboard-iPad.storyboard).

like image 25
olivaresF Avatar answered Sep 23 '22 00:09

olivaresF