Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make an iPhone specific app work on iPad to meet Apple requirements

My app has been in the AppStore for a couple of months now and always only worked on iPhone. I recently submitted an update which was rejected because the App does not run on an iPad. The exact reason it was rejected was:

Reasons for Rejection: 2.10: iPhone apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution

What do I need to do in Xcode to make my app run on an iPad in the little box with the 2X icon?

Any tips instructions will be massively appreciated...

EDIT This is my info.plist. This is my first App and I think I did initially chose to set it up with "universal" selected. Is there an easy way back for me to rectify this now?

PLIST contents...

like image 942
Sean Avatar asked May 10 '12 05:05

Sean


2 Answers

Start by figuring out why your app doesn't work on the iPad already. Most apps developed for the iPhone will work fine on an iPad (in compatibility mode) with no modification; if yours doesn't, you must be doing something to prevent it. Are you relying on some hardware feature? Making unfounded assumptions about the device you're running on? How does your app fail when run on an iPad?

Once you've figured out why it doesn't work, you'll be much closer than you are now to fixing the problem.

like image 129
Caleb Avatar answered Sep 27 '22 19:09

Caleb


To get your app to run on an iPad in iPhone compatibility mode, you need to build your app for iPhone only.

Remove all the iPad references from the app's plist (nib base, xib and storyboard), and from the Target Build Settings Targeted Device Family.

like image 39
hotpaw2 Avatar answered Sep 27 '22 18:09

hotpaw2