I want to test my phonegap-jqm application in iphone 5 simulator.
Currently the application perfectly working in ipad 6.0 simulator.
How to add/install simulator (iphone5) in xcode 4.5.2
Thanks in advance.
iPhone 5 (4-inch retina)
If you want to test in iPhone 5, select appropriate configuration in iOS Simulator Hardware -> Device
Download iOS 5 simulator
If you want to install another version of iOS simulator, go to Xcode preferences -> Downloads and download simulator you want.
Ensure that your project target is 5.x or lower to run on iOS 5.x
BR.
Eugene
It should be installed by default.
You should check wether you have your app built for iPhone and iPad (Universal) or only for the iPad. In the picture down, the app will run both on iPhone and iPad, but on iPad it will be in an iPhone simulation mode with a 2x button down.
If it is built only for the iPad you won't be able to test it on the iPhone. Also check out this question.
Related
I have these iPhone simulators:
iPhone 5
iPhone 5s
iPhone 6
iPhone 6 Plus
iPhone 6s
iPhone 6s Plus
iPhone 7
iPhone 7 Plus
iPhone SE
What happened to the iPhone 4 and iPhone 4s?
1) You have to download at least iOS 8.x, 9.x SDKs to be able to run iPhone 4S simulator.
2) Your deployment target should remain at least 9.x to see iPhone 4S simulator in the list of offered simulators in your project.
I have an Xcode 8 and these simulators available:
Xcode 8 includes simulator from iPhone 5 & higher with default deployment target 10.0, but you can add a new simulator.
1.) Change "iOS Deployment target 10.0" to 9.3
2.) In "iOS Simulators" Choose Download simulators
3.) Simulator downloading like this:
Select the simulator that you will need.
4.) Wait for it to be downloaded.
5.) Add new simulator.
6.) Enjoy =D
iOS10 will not support iPhone 4 or iPhone 4s. Hence it's removed by apple from Xcode8.
If you still want to use 7.1 ( copy the disk image from Xcode 7 ). This will work but not sure if it's allowed to do so .
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/7.1
I have found a quick solution - use an iPad simulator. It mimics screen size of iPhone 4.
If you have a universal app - disable this feature temporary (open your target -> select 'General' tab -> scroll down to 'Deployment Info' section -> click on 'Devices' dropdown -> select 'iPhone').
I have created a new iOS project; by default the deployment target is iOS 8.2, but I don't have the option to use the simulator. I went to the Xcode preferences, and I don't have the option to download the iOS 8.2 simulator. I'm using Xcode Version 6.2 (6C131e).
If I tried to open the simulator via developer tools. I get this error:
I rename Xcode.app and rebooted my mac but didn't help.
I ran "xcrun simctl list" and I got this list:
== Device Types ==
iPhone 4s (com.apple.CoreSimulator.SimDeviceType.iPhone-4s)
iPhone 5 (com.apple.CoreSimulator.SimDeviceType.iPhone-5)
iPhone 5s (com.apple.CoreSimulator.SimDeviceType.iPhone-5s)
iPhone 6 Plus (com.apple.CoreSimulator.SimDeviceType.iPhone-6-Plus)
iPhone 6 (com.apple.CoreSimulator.SimDeviceType.iPhone-6)
iPad 2 (com.apple.CoreSimulator.SimDeviceType.iPad-2)
iPad Retina (com.apple.CoreSimulator.SimDeviceType.iPad-Retina)
iPad Air (com.apple.CoreSimulator.SimDeviceType.iPad-Air)
Resizable iPhone (com.apple.CoreSimulator.SimDeviceType.Resizable-iPhone)
Resizable iPad (com.apple.CoreSimulator.SimDeviceType.Resizable-iPad)
== Runtimes ==
iOS 8.1 (8.1 - 12B411) (com.apple.CoreSimulator.SimRuntime.iOS-8-1)
iOS 8.2 (8.2 - 12D508) (com.apple.CoreSimulator.SimRuntime.iOS-8-2)
== Devices ==
-- iOS 8.1 --
-- iOS 8.2 --
Any of you know why I don't have the option to run my project in the simulator?
You are likely experiencing the issue mentioned in the release notes:
Renaming Xcode.app after running any of the Xcode tools in that bundle
may cause iOS simulator to be no longer be available. Either rename
Xcode.app back to what it was when first launched or restart your Mac.
(16646772)
Additionally, it may be the case that you really don't have any devices configured (did you delete them?). Look at the output of xcrun simctl list and try creating devices using xcrun simctl create. Also take a look in ~/Library/Developer/CoreSimulator/Devices. Is there anything there?
I've downloaded in Xcode 5 component iOS 6 simulator. I'm able to test my application on iOS 7 simulator without any problems. Now I want to check my application on iOS 6 simulator. How should I force to launch my application on specify simulator version?
When I switch my simulator:
Hardware -> Device -> iPhone Retina -> iOS 6
Then I see correct version, but when I launch my application then version of simulator switch again to iOS 7.
Do you have any advices how can avoid this behavior?
You need to update your deployment target to support iOS 6. As follows:
Select your application target in Xcode
Open the Build Settings tab for the target
Set the deployment target to iOS6.0
. . having done this, you will now see both iOS6(.1) and iOS7 listed as simulator targets:
when i run the XCODE with ios 4.3 the default simulator is set to ipad ....I changed active executable setting to iphone simulator .. but stil its not working ..Whenever i open the XCODE again its restting back to ipad .. Is ther any other way to set this out ?
When building the app in the iPhone simulator, wait until the iPad finishes loading; if your app is displayed and working properly then (and only then) try switching to the iPhone simulator.
To keep the iPhone display as the default, try changing the program preferences from the simulator itself or from the Xcode project file in Xcode.
I want to prepare my App for the IPad, but what ever I do I can not get this to work. Without any changes to the project, the Active Executable says "xxx - IPhone Simulator".
So what do I have to do to make my app run in the Ipad Simulator ?!
Thx
Change the target version to iPhone OS 3.2. (The simulator currently only allows iPhone on 4.0 and only iPad on 3.2.)