How to stop support for ipad - ios

My game is build specifically for iPhone and not larger screens like iPad retina. In Xcode, how do I stop my app from being considered as an iPad game.
I tried choosing iPhone under deployment info section in Xcode, but it didn't help.
Any help pls.
Here is the Xcode screenshot
I have also set the Target Device Family as iPhone

The solution involves
1) In Xcode, under Build Settings->Targeted Device Family->Choose iPhone
2) Check that when you run the app on iPad it shows 1x/2x in bottom right corner
If apple rejects the app, tell them it is not built for iPad.

Related

iPad app is not utilising the full screen

I have an iPad application on App Store. App is only supported for iPad. App is not a universal App. I am using launch screen storyboard.
App is working fine on 12.5, 10.5 inch iPad devices. But for 11.0 inch iPad device app (iOS 12.1) is not utilising full screen. App is behaving as iPhone app running on iPad without 2x button.
I know this issue comes when you run iPhone app on iPad. But as my app is iPad only. So not getting what causing this issue.
Is anyone faced similar issue? Please let me know how you fixed it.
Thanks in advance.
Note:
1 - iPad only build created on environment Xcode 10.0 and iOS 12.0
2 - Just review https://developer.apple.com/ipad/ Optimizing Your UI Section.
I don't have 11 inch/pro iPad device. So will iPad app build created on Xcode 10.1 resolved this issue?
If you didn't create a view for "that size" then it'll be displayed for the size you created it for. If you created a universal app it would automatically resize itself for the appropriate iOS device. If you create a view for the largest iPad size then it should automatically scale itself down for smaller screens. From the sound of it you created the app for a specific size iPad ignoring the other bit depths available on various models. Even if you want your app for "iPad only" you can do that while still controlling how it scales itself down to say an iPad Air vs iPad Pro.

How to fix iPhone deployment target ? (App Store)

So I tried to ship my iPhone app into the App Store. but it get rejected because when the App reviewer test my app they are using iPad and it seems my app is messed up.
and this was the rejection message:
We noticed that your app did not run at iPhone resolution when reviewed on iPad running iOS 10.3.1. Specifically, we were unable to Sign Up using an iPad.
So I searched that I need to make the deployment info devices into Universal. It works well on iPad when I tested out. But the problem is I'm shipping this app for iPad. and when I go to iTunes connect, they were asking for iPad screenshots.
So should I set the device deployment for iPhone or Universal?
The app must work in iPad also. choose the devices iphone only and try to run your app in ipad in 1x and 2x view.
If you want to build for iPhone only, you will need to go to the project settings > General > Devices and choose "iPhone". If you choose "Universal" then you are building for both iPhone and iPad, which is why you need screen shots for the iPad as well. If you build for iPhone only, though, the app can still run on iPad, it will get scaled up.
As for the reason why it is not working on iPad using iOS 10.3.1, you'll have to run it on a device with that version of the OS and do some debugging. The information you gave here is not enough.

Problems with device target for iOS app

)
Hello all :-)
I want to release an iPhone/iPod Touch only app. However, I know iPad users can still download the app from the app store, which is fine by me. I was simulating my app on simulator to see how it would look like on an iPad. When I simulated it, the app looked terrible: the layout was not the same as the iPhone version, some labels were colliding and buttons were "cut" out of the screen.
I want iPad users to have the same view as an iPhone. I believe a 1x/2x button would appear on the screen in that case. How can I do that?
Any help/advice would be really appreciated!
Thank you :-)
When you upload your app to the App Store it will also allow iPad users to download the iPhone version of the app. This will have the 1x/2x button you are looking for.
However if you test your project on the iPad simulator before you upload the app, it will not be the same iPhone version of the app that the iPad users will see. Instead the simulator will run an actual iPad version of the app which is not what your looking for.
In your project settings, set your target device to iPhone only. Upload the app. When iPad users download the app they will get the iPhone only version with the 1x/2x button for the iPad.
In your project settings, make sure the "Devices" settings is "Universal" (this is under "Deployment Info"). If it was not before, you may have to make some layout adjustments.
Use Autolayout for fixing the design issues
in storyboard right pane -> attribute inspector -> simulated metrics-> select inferred in size for all controllers
You should be seeing this in the simulator (note the letterboxing on all sides):
And your build settings should show 1 as the target device family:
If not, you are iPad-native and that's the source of the trouble.

enabling iPad pro in xcode/simulator

I have an existing iPad project which I want to enable to be used on iPad-pro. In my "Project target" I set my "iOS Development Target" to 9.1 and made sure that in my individual app targets the same development target has been set. However when I choose iPad pro form the simulator and run the project my screen size is still set to the standard iPad size
the screen size:(0.0, 0.0, 768.0, 1024.0)
Could someone point me to what else I should be doing.
My project is a combination of objective-c and swift.
With thanks
Reza
as with every iOS device that has a specific screen size, you have to provide the right launch image or a launch storyboard to make it known to iOS that you provide the screen size.
for ipad pro:
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html
iPad Pro launch image and App icon
iPad Pro icon and launch image

iPhone simulator not working since xcode5 upgrade

Ever since i upgraded to xcode5, the iOS simulator only displays as an iPad even though the project is targeted for iPhone. The Run button also shows it's set to iPhone and I've tried switching between the different iPhone types in simulator. But no matter what, my iPhone project opens as an iPad simulation. Anybody encounter this problem or know how to fix it?
I believe I've downloaded all the relevant libraries and tools from apple as well. I'll double check that now but I'm pretty sure I have all the accessory downloads up to date.
Edit
I found the answer! Due to the changes with resolution of the retina display, the simulator was loading without the bezel. Turns out the best way to solve this problem without a large screen or retina display is to deploy target in navigator=>General menu=> to iOS 6.1 and make sure iOS simulator=>Hardware=>Devices=>is set to iOS 6.1 as well.
Have you tried changing the simulator device? Go to iOS Simulaotr.app -> hardware -> devices?
Download the extra components/simulators..
If you find your iOS simulator is showing a large iPad like display since upgrading, it's because of the change in resolution for the retina display. In order to view the simulator as a regular looking iPhone follow these steps:
Deploy your project target for iOS 6.1 or earlier. In the navigator menu (far left), top folder (your project folder), click it. Make sure "General" is selected in the menu in the centre of the screen. In 'deployment Info' set it to iOS 6.1 and 'devices' to iPhone.
Open iOS simulator: Click 'XCODE' in the top left of the screen => Open Developer Tools => iOS Simulator.
In iOS simulator, go to => Hardware => Devices => select iPhone => iOS 6.1. Make sure not to select any of the hardware devices that are listed as retina displays, thats the major key.
Finally, make sure the deployment next to the run button is also showing 'iPhone iOS 6.1' AND NOT 'iPhone Retina...'
And enjoy seeing the iPhone simulator properly again! :)

Resources