I recently created an iPhone app using Xcode and storyboards. The app works perfectly on a real iPhone and the iPhone simulator, but when I test it on the iPad simulator or an actual iPad something happens with the application, and I can't figure out what went wrong...
iPhone Simulator
iPad Simulator
I solved this problem by clicking on my main Project name in Xcode. Then I selecte the tab "info" and I changed the Main Story Board File Base Name (iPad) to my storyboard. Then it worked perfectly!
This happens to a number of apps in many occasions, my soloutions are:
1: Try making a separate app but change the app's code from the original app, if by any chance a new code would work, try uploading this app but label it by the originally name but adding 'V.2 or iPad V.1'.
2: If the soloutions above isn't working have you asked a friend or a person you know with a different version of the iPad or a different branded simulator if the app works. If it does, it means your code can either not enable in your version of the iPad or stimulator or that your code must've been changed in download (Which is rare but does happen.) and I suggest re-buy or re-download your app. If it didn't work for your friends or some friends had it working while others didn't (Soloution is best if your friends had different versions of the iPad or stimulator) I think there is a possibility of it being a 'MultiCrash&MultiUsabls'' which is a type of gaming on Mac Products which the app can be simultaneously downloaded by many users who own different versions of iPhones, iPads and iPods and some of them manage to have the app work while it doesn't for others, you should save the code in a file, then delete the already made game, re-upload and see if it works on the iPad and iPad stimulator.
Related
I just had an iPhone only App rejected by iTunes connect because...
In our review of your app, we found that it is a Universal app for both iPad and iPhone. Because it is set as a universal binary, your app requires screenshots from iPhone and iPad.
The app had previously been a universal binary (never previously approved) and I had previously uploaded an iPad screenshot (just a place holder) to allow me to upload the binary. (I had to upload then self reject a binary to test IAP.)
But as far as I can tell my app is a iphone only binary. When I run it on the iOS iPad simulator it runs at iPhone resolution with the 2x button. Yet when I upload this (I think) iPhone only binary to iTunes Connect it still asks for iPad screenshots.
In Xcode I have the following settings
targets->Build Settings->targetted device family = iPhone.
and
targets->Summary->Devices = iPhone.
And again it acts like an iPhone only app when I run it on the simulator. Are there any other setting in XCode or in iTunes Connect that I need to set? Thnx
EDIT
After my app was rejected I removed the placeholder iPad screenshots from iTunesConnect. (I had tried to do this several times before submitting the app, but was unable to. I even wrote a developers note to the reviewer hoping they wouldn't spike my app for that reason.) I also remove the ipad Default.png from my project. One of the two of those actions fixed it. I think because I had been testing the app as a universal it took a couple of submissions to for iTC to recognize that I was only uploading an iPhone version. Either way, it now recognizes it as a iphone only and was approved.
After my app was rejected I removed the placeholder iPad screenshots from iTunesConnect. (I had tried to do this several times before submitting the app, but was unable to. I even wrote a developers note to the reviewer hoping they wouldn't spike my app for that reason.) I also remove the ipad Default.png from my project. One of the two of those actions fixed it. I think because I had been testing the app as a universal it took a couple of submissions to for iTC to recognize that I was only uploading an iPhone version. Either way, it now recognizes it as a iphone only and was approved.
just set build target devices In Sumary to iPhone...make a check in plist... also just load .xib files iPhone, make a clean in your project and rebuild.. Check if you are not loading some target
You shouldn't believe what you see in targets->Summary. Especially, if you ever changed to "Universial" and back to "iPhone".
Instead of Summary you should always check targets->Info.
Also if you change Icons, Orientations, etc. often there are leftovers which you only find in Info
I've had an iPhone product on iTunes for a while and have superseded it with a universal app which has been met with approval except from one customer who wants to run the iPhone version on his iPad as he preferred the larger inputs and working of the iPhone.
Is there any way to configure the app to run either as native iPad app or iPhone app on iPad at runtime? Seems an odd request but customer is quite insistant.
Thanks
/Fitto.
No way to do that, except making separates versions for iPhone and iPad.
Theoretically, you could have some setting that would load the iPhone storyboard on the iPad, but it would still display full screen, and not in compatibility mode, which is probably the way this particular user wants it
Assuming you are running some sort of source control, you could change the project to be "iPhone Only" and then test on the iPad, then later revert the changes made to make it a Universal app again
I am working on a universal application where I am stuck at one point. I was able to successfully launch my application both on iPhone and iPad but since 2-3 days, I am not able to launch my application on neither iPhone nor iPhone simulator but it runs smoothly on iPad/iPad simulator.
Also when I run my app choosing iPhone device it shows message like Running the App on iPhone simulator but I am not able to see any effect on my simulator. I am using Xcode 4.2.1 and I guess the issue is pertains to the same.
I don't know whether it is a solution or not but got a way out by reinstalling the iOS Simulator.
I have faced same problem. This probably happens when you replace the application with the newScheme/EditScheme by mistake.
Just carefully check when you run your application is there your application name appear. This will be immediate left at where you choose iPhone simulator or iPad simulator version.
I created a iPhone application first and converted it to iPad version to make it a universal build. Most of the time it works fine. But sometimes my iPhone version load as iPad and iPad version launches as iPhone. Kind of mixed up. What is the cause for this? Will this be an issue in actual devices once I submit that to the app store?
Thank you
In Xcode you can select the active executable (use the drop-down in the upper-left corner). I find that sometimes it switches on me, perhaps showing iPad and requiring me to set it back to the iPhone executable for example. If this is your issue, there will not be any confusion when you're running it on an actual device.
If you are planning to submit an app to the app store, it's a very good idea (understatement) to test the app on real devices first!
I've just submitted my app to review (for the App-Store), and apple has rejected my app, saying the following:
"On iPad, the application displays a
black screen and no content loads.
This review was conducted on iPad
running iOS 3.2.2 as well as iPhone 4
running iOS 4.1. A screenshot has been
attached for your reference. "
am i obligated to create an iPad version of my app? or maybe i've set some property "on" and made apple think i would like the app to work on iPad?
to be more clear,
i want my app to run on iPhone only.
is it possible? and if do, what need to be set (project properties? info.plist?) to mention that the app should run on iPhone only? so that apple will not test it on iPad...
appriciate your help.
Dror.
Note - this historic QA is 5+ years old.
All issues mentioned in the QA are no longer relevant in iOS development! Enjoy
The problem is almost certainly that you (accidentally) made the app universal.
IF you made it universal, you MUST have both an iPad and iPhone version in there.
If you make the app normal, iPhone only, you do NOT have to (indeed, you can't) have an iPad version in there.
To be clear, Apple are talking about the "ACTUAL" iPad version. Of course, your iPhone app will run using the "blow up mode" on an iPad. Apple are not referring to the "blow up mode."
It is rather silly that in that particular form letter, they do not say something like: ,"You have almost certainly accidentally made your app universal instead of iPhone only" since that is the situation 100% of the time when that happens.
Good luck on waiting another 2 weeks :-/
You do not have to create a specific version of your app for the iPad, however all iPhone apps must also be able to run on the iPad. You might want to try searching google for resources on how to make your app iPad compatible.