Run the application in iPad 10.5 inch Simulator? - ios

I have downloaded Xcode 8.3.3 and I am able to view iPad pro 10.5 inch in Interface builder. But I would like to test it in iPad pro 10.5 inch simulator. Is there anyway to download that simulator on Xcode.
I have looked at below thread but it does not answer my question.
How to add support for 10.5 inch iPad Pro

You don't have to download a different simulator for different device sizes, only for different iOS versions. Look for "iPad Pro (10.5-inch)" in the Xcode "Devices" window (press Shift+Cmd+2 to show it). If it's not there, try using the "+" button to add it.
Also make sure your target is correctly set up. Click on your project in the file navigator and select the target you're building in the main pane, then:
look in the deployment info for your target (in your target's "General" tab) and make sure "Devices" are set to "Universal" or "iPad",
make sure the Base SDK, in your target's "Build Settings" tab, is set to "Latest iOS", as the simulator may not show if the target is not being built for the minimum iOS version it supports.

Related

How to set default simulator device in Xcode 10 which is used for new projects [duplicate]

I've been making a ton of new projects as I'm learning Swift. My development is all on my laptop, so I hate using the default 6s Plus simulator, since the window is too big to easily see. Is there a way to change the default simulator to be a different one for new projects?
No need to delete simulators!
Product → Destination → Add Additional Simulators...
In the sidebar, select the simulator you want to hide
Uncheck "Show as run destination"
Edit: Updated for Xcode 10
You can select the desired simulator via the Hardware > Device > [OS] menu (Xcode 9):
While unchecking "Show as run destination" hides the simulator, this will also change the default value.
Updated image for Xcode 11.5
Xcode 9 UPDATE:
In Xcode 9, no need to delete simulators, and the way to turn them on/off is to go in Product/Destination/Add Additional Simulators... select the simulator you want to turn off, then uncheck the box: 'Show as run destination'
No. But...
If you don't like the size of the 6s plus simulator, make it smaller with the simulator Window Scale menu.
If you don't like the 6s plus simulator at all, delete it with the Xcode Window Devices menu.
Xcode 12.5
In Xcode, go to Product -> Destination -> Choose Destination menu and selecting the device you'd like to be your default.
The original answer could be found in apple support forum here: Apple support forum,
In addition if you want to make the device smaller just hover over bottom right corner of the simulator and you will see the resize option
Deleting the simulators you don't want will default you to the simulator you do want. I also develop on my laptop and the biggest simulator I can see w/o scaling down is the 4S, so I deleted simulators for iPhone 5 and above and now every project I create defaults to 4S simulator. If I ever need the newer simulators, I will just re-download.
In my case, just select the device in Product → Destination, Xcode 12.4
Xcode version 11.5
On Simulator > File > Open Device > iOS 13.5 > Change the default Simulator
Xcode(v11.5)
open your simulator, choose **File/Open Device/iOS 13.5/iPhone8 ** will change your simulator device to iPhone 8.
When you reopen your simulator, iPhone 8 will be your device simulator.

How to download iPad Mini simulator

I want to test my application on iPad mini screen in Xcode 8.2, but I could not find the simulator for the same.
I have also tried to add simulator Hardware > Device > click bottom add menu but here I do not see any option to download the iPad mini simulator.
By popular demand, Xcode now includes the iPad mini Simulator. It is not created by default, but you can use the Xcode Devices & Simulators window or xcrun simctl from the command line to create one.
For example, to create an iPad mini 4 simulator with Xcode 11.2:
xcrun simctl create "iPad mini 4" com.apple.CoreSimulator.SimDeviceType.iPad-mini-4 com.apple.CoreSimulator.SimRuntime.iOS-13-2
I don't know about the earlier releases but you can do this on Xcode 10.2.1(or later)
Select Add Additional Simulators... from the active scheme:
Then press + to create new Simulator and select iPad mini in Device Type:

How to debug an AIR app in different iOS devices on iOS simulator?

I am developing application using Flash Builder 4.7, Flex 4.13 and AIR 16.0.
I want to debug my app on different iOS devices. iPhone5, iPhone 6, iPad, etc.
The iOS Simulator always starts up in iPhone 5.
If I try to change the device from the simulator menu "Hardware->Device-> iPad2" the application is stopped, the new device is loaded,
however when I debug the application, iPhone 5 is started again.
Could you please give me some insight how to debug on different devices?
You are able to set default simulator in Terminal.app
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Retina"
it worked for me but in other IDE - IntelliJ IDEA
but i think it should work for you too
to see current device you can use
launchctl getenv AIR_IOS_SIMULATOR_DEVICE
You may need to restart IDE and Simulator after device change
Not sure how do you switch with the "hardware" menu (please enlighten me) but generally you can set up the device to be simulated in the Debug configurations menu - click on the small arrow to the right of the debug icon (red arrow) and select "Debug configurations". Make sure your application is selected on the left size (in my case it's "Test") and select the device to simulate on the right side (Select iOS as target platform and choose a device in the Device dropdown). Add more devices by clicking the "Configure" button.

Xcode doesn't show the iphone simulators as the destination

I put my ios deployment target as 7.1 and when i uploaded my game to itunes connect, it said i need 3.5 screenshots and I only have an iphone 5 so I have to use the simulator but when I tried to change the scheme it doesn't show up the simulator options. Why does this happen? Thanks
Delete Derived Data and restart Xcode.
1) Open Terminal
2) rm -rf ~/Library/Developer/Xcode/DerivedData
3) Restart Xcode
You have to add screenshot for 3.5" because ios7.1 is also for iphone4s which have 3.5" screen.
You can find simulator at,
open simulator -> Hardware Menu -> Device -> Manage Device
In Manage device you can add simulator by clicking on '+' button which is at bottom left corner of the screen.
If you don't find the simulator here then you have to download from
xcode->preferences->downloads options
I think you are missing one little thing:
To choose your building/running destiny.
When your real iOS Device is selected it looks like:
1 - Click on your iOS Device Name to select which device you want to simulate (iPhone 4S - 3,5 inch)
2 - Build/Run your project and your app will appear on the simulator you choosed.

How to Run the App in iPad Simulator?

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.

Resources