Search code examples
iosxcodebuild-process

Which Xcode build settings for iPhone app so it can run on ipad as well?


I have written an app intended for the iphone. Obviously it is ok if it used on the ipad in the iphone mode, but it is an iphone app.

My app got rejected by Apple, I received a mail with a screenshot named Screen_shot_0.png as attachment, that was empty with in the middle the text "My Universal App on iPad" (which you if you open in Xcode the file MainWindow_iPad.xib).

Probably the app was uploaded with the Universal setting, not sure.

I did add icons, launch images etc. for both iphone and ipad.

Now I am confused about the following settings (click on Xcode project file): I will give my settings:

Project "appname"

iOS Deployment Target: 6.1 (should I take an older one?)

Targeted Device Family: iPhone (should this be iPhone/iPad?)

Targets "appname"

Targeted Device Family: iPhone (should this be iPhone/iPad?)

Everything works on iPhone4, iPod, iPad3.

The only thing is that the launch image of the iPad is cut off a bit at the right side, which causes me to think that some iPhone splashscreen is used instead. Would this be an issue for Apple?


Solution

  • If you want an app written for iPhone to run on iPad in iPhone mode, then you've actually done too much.

    Just write it as a an iPhone-only app, and the iPad will automatically support it in iPhone mode. iPhone mode on the iPad offers users a chance to zoom to 2x resolution, but everything is "as if" it's running on an iPhone. Be sure NOT to upload as (or set attributes to claim it is) Universal. Don't provide multiple versions of screenshots, only provide iPhone screenshots. Think of "iPhone mode" as an iPhone emulator that runs on the iPad.

    Only use "Universal" if you want to package both iPhone and iPad apps (typically with separate storyboards and definitely with distinct screenshots) in a single package that can run on either device. Upload as iPhone only and it will run on iPad in iPhone mode. Good luck!