15

Xcode 5 is behaving just fine, and I'm able to build and run apps on my iOS 7 device and in the iOS 7 simulator.

However, I do want to support iOS 6.1, but I don't see any way to build and run the apps for an iOS 6 simulator.

Things wot I've done:

Originally, I was trying to see the app in the iOS 6 simulator by switching from iOS 7 to iOS 6 in the Hardware > Device menu in the iOS Simulator application, but there aren't any apps in the iOS 6 simulator.

I'm gathering from answers like this one that there should be something I can select before I click Build/Run.

I'd love to be able to see my apps in both iOS 6 and 7 simulators. Any ideas what I'm missing? Here's a LINK to what I see when I click on the simulator dropdown.

Community
  • 1
  • 1
weienw
  • 812
  • 1
  • 8
  • 22

11 Answers11

37

Turns out the solution was changing the deployment target for the project from iOS 6.1 to iOS 6.0, upon which the simulator scheme selection immediately showed the option to choose iOS 6 or 7 simulators. Basically the deployment target should match a simulator version that you have installed.

Thanks to random commenters in questions like this one who mentioned that that worked for them.

Community
  • 1
  • 1
weienw
  • 812
  • 1
  • 8
  • 22
  • I also just started having this issue... however switching my deployment to 6.0 did not aleviate the problem... still no access to 6.0 simulators – theprojectabot Nov 18 '13 at 04:51
  • 3
    actually... looks like I needed to redownoad the simulators again from within Xcode prefs as the new version of xcode invalidated my last simulators. – theprojectabot Nov 18 '13 at 04:52
9

All you have to do is go to Xcode -> Preferences -> Choose the "Downloads" tab and install the iOS 6.0 Simulator.

Once you're done downloading it, it should show up as an option in your schemes.

Matt Tang
  • 1,297
  • 11
  • 17
  • Thanks for the direction, Matt, but I did do that. I've added a link to my OP (at the end) showing what I see when I try to choose simulators. – weienw Oct 04 '13 at 19:35
  • Yeah, I'm not sure then. Did you try to completely close out XCode? Also, could you take a screenshot of the tab when you click on More Simulators... option in your screenshot? – Matt Tang Oct 04 '13 at 20:38
  • Sorry about the late reply -- yup, I've completely closed Xcode at least a few times. Here's a [screenshot](http://imgur.com/xsZ3KVa) to what I see when I click on that option. – weienw Oct 08 '13 at 22:03
  • Yeah, my only suggestion left is to remove xcode 5 and redownload it. – Matt Tang Oct 09 '13 at 01:47
  • That seems fair... especially since I've yet to see anyone else with the same issue. Thanks for your thoughts. – weienw Oct 09 '13 at 14:08
  • Matt, just FYI -- I did try redownloading/reinstalling, but turns out the fix was changing the deployment target from 6.1 to 6.0. So strange. – weienw Oct 15 '13 at 02:54
9

Just a little caveat....I tried what you said but it didn't work for me... Changed Deployment Target on "Project" from 7.1 to 6.0

Then I realised that Deployment Target was still set to 7.1 on the "Target" - once I changed that it worked!

Robert Keogh
  • 203
  • 3
  • 8
4

Click to target or project > Build Settings > Achitecture > Supported Plateforms : change to iOS

Badre
  • 710
  • 9
  • 17
3

What I did to get mine working was click on the scheme to the left of where the Simulators usually appear in the dropdown, then choose edit scheme.

A new window will display, make sure that Run is highlighted on the left and then click on the Info tab. Choose the .app file for Executable.

enter image description here

enter image description here

Nathan Dries
  • 1,015
  • 8
  • 20
2

If you are still looking for a solution here's what worked for me:

  • From the xcode beta's pull down menus, Xcode > Open Developer Tool > iOS Simulator (if you get a pop up error just dismiss it)
  • Once in the Simulator go to Hardware > Device > Manage Devices.
  • Delete everything listed under simulator.
  • Reboot your machine.
  • After that navigate back to Manage Devices in the simulator and click the plus to add back your simulators. Then the iOS 8 simulators will show up.
BigCheesy
  • 1,128
  • 8
  • 14
1

enter image description here

This might help u out better..you have to copy paste iPhoneOS6.1sdk folder. This is for SDK, similarly instead of iPhoneOS.platform select iPhoneSimulator.platform and then the same path.

dRAGONAIR
  • 1,181
  • 6
  • 8
  • I did copy/paste the iPhoneOS 6.1 SDK folder. I didn't do this for the iPHoneSimulator folder, but I did do an install, similar to how Matt Tang mentioned. I'll check to see if there's a difference. – weienw Oct 04 '13 at 19:35
  • I didn't do a copy for the the simulator, but the install added an iPhoneSimulator6.1.sdk folder next to the 7.0 one, like you described. – weienw Oct 04 '13 at 19:41
1

Please check whether your "Deployment Target" is higher than the ones available on your simulators.

enter image description here

Ruchira Randana
  • 4,021
  • 1
  • 27
  • 24
0

Xcode5 neither has 6.0 SDK or 6.0 simulator. But what you can do is u can copy both 6.0SDK and 6.0 simulator from your previous Xcodes (xcode4.5 for 6.0 and XCode4.6 for ios6.1) You can find the simulator at /applications/xcode.app/contents/developer/platforms/iphonesimulator.platform/developer/applications/iphone simulator.app

And SDK at /applications/xcode.app/contents/developer/platforms/iphoneos.platform/devicesupport/6.0

Copy the entire folders for simulator and SDK in the exact same path of XCode5. Note: to go the the Contents of Xcode.app just do a right click on the .app file and you will get an option"Show Contents".

Once u are done copy pasting, restart ur XCode5 and u can see 6.0/6.1 simulator as an option :)

dRAGONAIR
  • 1,181
  • 6
  • 8
0
  1. Click on your project root.
  2. Then Go to the Build settings.
  3. Then set iOS deployment target 5.0
  4. Then select iphone6 on top left of your project.

    See this image

iOS Lifee
  • 2,091
  • 23
  • 32
-1

Solved restoring an older version of the xcodeproj file.

johnnyRose
  • 7,310
  • 17
  • 40
  • 61
Alex
  • 1