How to Run the App in iPad Simulator? - ipad

I'm developing an application and I seem to have set something so it only runs in iPhone Simulator and not in iPad simulator (when I try to change the device in the Simulator from iPhone to iPad it simply opens it again in iPhone Simulator mode; in the iPad Sim the app doesn't show in the applications list).
How do I add the iPad run capability to my app?

Make sure you've set
iPhone/iPad
in your project's build settings (Deployment: "Targeted Device Family").

Select your target (i.e. not the target menu, but the target inside the menu.)
Click on the Project menu & choose "Upgrade Current Target for iPad."
In the dialog box that comes up, you're given two choices. Select "One Universal Application."
And that should be it. Previously, you had to roll back the deployment target for iOS to 3.2 since that was the latest version running on iPad. You would do this by right-clicking on the target, selecting getInfo from the popup menu, and looking through the Build Tab of the popup window for the deployment target. That should no longer be necessary as iPad now runs on iOS 4.3. But, if you have not updated your Xcode, the iPad simulator may still run only on version 3.2 or earlier.
Hope this works for you.

Related

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! :)

iOS simulator reverts to iOS7 when I'm trying to run 6

I'm having a weird situation in XCode 5 that I can't explain. My project's build target is iOS 6.1. I go into the simulator menu and change device to iPhone Retina (4-inch) / iOS 6.1. Should run in iOS6, yes?
When I hit run, the simulator immediately flips to iOS7 and runs the app in that instead. I've tried deleting the app from the sim, cleaning the build folder, resetting the simulator, restarting both...all the standard stuff. Still happens.
This is a project I had been working on in iOS6/Xcode 4. When I first opened it in XCode 5, I was prompted to "update the storyboard". I hit "yes" because it seemed like a good idea. Now I'm worried I can no longer support (or even test for) iOS6???
Appreciate any help.
A few things to check:
Like #vikingosegundo said, click on your project file and select 'Info' at the top. Your 'iOS Deployment Target' should be set to 6.0 or 6.1
Stay in your project file and click on your main target. Select 'General' at the top. Your 'Deployment Target' should be set to 6.0 or 6.1 here as well.
Now, when you go to select which simulator to run your project on it should give you the option to run on iOS 6.0/6.1 or iOS 7.0
As an aside, you can work with a storyboard file in iOS 6 or 7 mode by selecting your storyboard file in the project navigator, clicking on the File Inspector and changing 'Builds for' and 'View as' to the appropriate iOS target.
(To find the file inspector: in XCode, once you've selected the storyboard file go to the right-side panel and click on the little document icon on the upper left side. When you hover over it, it should say 'Show the File Inspector')

New ios7 update & xcode 5 no device found

I just updated my iPhone4s to ios7 and xcode to 5.
I am trying to run my app on the iphone which worked for 6.1.x and 4.xx. However,
after the update xcode claims not to find my connected iphone testing my app.
Xcode cannot run using the selected device.
No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination?
Window -> Organizer.
Click on device tab.
Click on the iOS device on the left side and click the button 'Use for development'.
Check in Organizer if device is used for development or has lost this property on xcode actualization.
check the organizer like Rauru Ferro said. It might need some time to update the settings in Xcode. You should see a progress bar loading, after that everything should work fine.

Creating a new Xcode 4 project targeted to iPad only

I'm attempting to create a new iPad project for an app I'm working on, prior to version 4 of Xcode you could select in the new project assistant what device family you are targeting. In Xcode this appears to have been removed and all I can create is an iPhone project. I can go to the project info and change the device to iPad, and Xcode converts it, but how do I just create an iPad project ?
It depends on your application template. Some (Tab Bar, Navigation) are tied to iPhone devices only, some such as Split View are tied to iPad devices only, while the "Window based" template allows you to pick iPhone, iPad, Universal.
Select the type under new project, and press next. Under device family you choose iPad.
You can set this in the target. Look at the screenshot:
The Devices dropdown allows you to select
iPhone
iPad
Universal

Application doesn't work in iPad Simulator, fine in iPhone Simulator

I created an application and it runs OK when I use the iPhone Simulator. When I try to run it on the iPad Simulator it doesn't work.
Several things that may assist anyone who tries to assist with this issue:
In the iPhone Simulator I tried to change the Hardware settings - selecting Device---iPad and also changing the Version (3.2 and 4.0). did not do any difference.
When it runs with the Device---iPad selection it simply opens it with iPhone Simulator
When I open the iPad Simulator without Build and Run from XCode I don't see my app in the applications list on the simulator view.
Should I define something in XCode or in the simulator (like saying "this application should also run in iPad")?
May the problem be related to versions issue? Any other ideas?
The simulator will open to which ever device the project target is set to. Therefore, if you set it to iPhone it will always open in the iPhone simulator. Similarly if you set it to iPad it will only open in the iPad simulator. If you set it to be Universal, then it will support both.
It has nothing to do with which hardware type you select in the simulator. You have to change the target Devices.

Resources