Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Storyboard file 'MainStoryboard_iPad~ipad.storyboardc' was not found

I am attempting to validate my iOS project before uploading it to the App Store. It's an iPhone app that runs fine in the simulator and on my iPhone test device. It works fine in iOS 6.1 and iOS 7.

When I run the Validate check in Xcode Organizer, I repeatedly get 1 error and 1 warning.

Error is:

Storyboard file 'MainStoryboard_iPad~ipad.storyboardc' was not found. Please ensure the specified file is included in the bundle with any required device modifiers appended to the filename.

Warning is:

Missing recommended icon file. The bundle does not contain an app icon for iPhone/iPod Touch of exactly '120x120' pixels, in .png format.

I have spent days (weeks?) searching for an answer to similar questions that might resolve the error message. Nothing works ... and I've tried a lot of things that seemed to have worked for others.

Perhaps there really is something wrong in my code / bundle creation ... help! I can't find it. Since I get the same 2 messages every time I try and validate the project, no matter what I change, I'm starting to wonder if, somehow, the changes I'm making are not making it through to the bundle that is getting validated each time?

like image 798
Doug Avatar asked Nov 14 '13 00:11

Doug


2 Answers

Goto your Project view, click Targets, goto General tab and look at Deployment Info settings. In the Devices selection box, you will see iPhone in your case.

Perform the next steps:

  1. select iPad
  2. Delete the text Storyboard-iPad in the 'Main Interface' Choice box so it is empty
  3. Press cmd-s to save (If not saves automatically)
  4. select iPhone again in the Devices selection box
  5. Build your project again and archive it again 5.

Problem should be solved now.

like image 102
Serge Liberloo Avatar answered Oct 02 '22 08:10

Serge Liberloo


To fix the error, just open the project's info.plist file and remove the value for the key Main storyboard file base name (iPad) (or UIMainStoryboardFile~ipad).

enter image description here

Also, you should be able to fix the warning by adding an app icon of the size/type specified in the warning message.

Don't forget to re-archive after making these changes.

like image 41
Myxtic Avatar answered Oct 02 '22 06:10

Myxtic