how to run ios6 simulator in xcode5? - ios

I upgraded my xcode to xcode5,In the directory
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
I got iPhoneOS6.1.sdk/ and iPhoneOS7.0.sdk/
In the directory /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
I got iPhoneSimulator6.0.sdk/和iPhoneSimulator7.0.sdk/
Every time when I ran my app, I can't select the version of the iOS, nor can I select I resolution other than retina. The Xcode5 always use a retina resolution with iOS7:
But what I want to use is the low resolution with iOS6, how could I do?
ps:
I have set the following settings to iOS6.1
General -> Deployment Target
Build Setting -> Base SDK
I did have downloaded the iOS 6.0 simulator, but I do not have option to use that.

Initially go to more simulators
Then A window will open up
Now Download And Install 6.0 /6.1 as you want
After successfully Installation it will show up like that
Hope this will help you !!!

Download Xcode 4.6 dmg file from the apple dev center.
Double click dmg file.
Mount it.
After then you can automatically use the simulator 6.
Alternatively you can also add the simulator 6 from the Xcode 5 also.
But the base SDK will remain 7.0 for Xcode 5.

With iOS 6.0 and iOS 6.1 simulator both installed, the problem got solved!

Go to Xcode preference and install the simulators

Go to Xcode5 preference and install the simulators

Related

Xcode 7 with iOS 9 device Error: device unavailable (Could not find a developer disk image)

After updating my iPad to iOS 9 public beta, I am getting an error while trying the run the app in my iPad. When I select the iPad as destination, it says "iPad (Unavailable) or Could not find developer disk image. How can I fix this? Any solution?
If you are using the Xcode 7 GM build version 7A218, the chances are that you accidentally downloaded iOS 9.1 (13B5110e) as opposed to the iOS 9 GM build (13A340). I did the same thing don't worry. They are too close to each other on the downloads page :0
You can check which version you have on your device by simply going to your device Settings > General > About > Version
All you have to do is download the correct iOS 9 GM build and go to iTunes. Click on your device. In the summary tab, OPTION + Right Click "Check for Update" and restore your device by navigating to the iOS 9 GM build finder location. Note by selecting "Check for Update" you will not lose any settings or data on your device. In other words, it is not a restore
However, if you are using Xcode 7.1 build version (7B60) iOS 9.1 is supported
I had the same problem and all I had to do was to update my XCode to 7.1. After that it worked. Your Xcode has to be updated to the latest version.
This is also encountered when trying to use Xcode 6.4 against an iOS 9.0.x device. Here's how you can workaround it and get Xcode 6.4 to recognize your iOS 9.0.x devices:
Download Xcode 7.0.1:
http://developer.apple.com/devcenter/download.action?path=/Developer_Tools/Xcode_7.0.1/Xcode_7.0.1.dmg
Open Xcode_7.0.1.dmg and drag the Xcode.app to your desktop
Right-click, Show package contents, navigate into /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Copy the "9.0 (13A340)" directory to the existing DeviceSupport directory for your Xcode 6.4 install. For example: ~/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
Restart Xcode 6.4 (if it was running), and your device running iOS 9.0.x should now show as a recognized device.
I solve this problem by just simple xcode restart.
Update Xcode. If it not help:
go to
/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
If you don't find there your device iOS version, you could try to copy last one and rename it to which one do you need, restart XCode and try to compile, it works for me.
Apple just released the new Xcode 7.1 which support iOS 9.1. Update Your Xcode and everything will be fine.
I have experienced same issue
Could not find Developer Disk Image
1) My Xcode version was 7.0.1 and i updated my iPhone to version 9.2, then upon using Xcode my iPhone was shown in section of unavailable device. Just like in image below:
2) But then i somehow managed to select my iPhone by clicking at
Product -> Destination -> Unavailable Device
3) But that doesn't solved my problem and started showing
Could not find Developer Disk Image
Solution) Then finally i downloaded latest version of Xcode version 9.2 from https://developer.apple.com/downloads/ and everything worked fine for me.
For me the problem was that I just needed to open my phone and click "Trust Computer"
I had XCode 7.0.1 installed + iOS 9.1 (13B143).
XCode had shown me "unsupported device" / "could not find developer disk image" in Devices windows until i updated my XCode to version 7.1. Everything works well now.
I had already update to newest version Xcode (7.0.1) but still can't build on iPod touch 5 in iOS 9.1(13B143).After copy 9.1 (13B137) folder from my colleague to DeviceSupport folder in Xcode, it works! Not sure it would create some side effects.

Can you use XCode6.3 with IOS7.1 SDK

Is it possible to use XCode6 beta with an IOS 7.1 SDK? The new tools are much nicer but I need to build for IOS7
Yes.
1. First download 7.1 SDK - XCode6Beta > Preferences > Downloads > iOS 7.1 Simulator.
Note: XCode6-Beta can co-exist with regular XCode (XCode 5.x). But when you download iOS 7.1 Simulator, it actually gets downloaded into XCode 5's path!! (probably a bug).
Open XCode5's SDKs folder..
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Open XCode6-beta's SDKs folder..
/Applications/Xcode6-Beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
Copy iPhoneOS7.1.sdk from XCode5's to XCode6-Beta's SDK folder.
Restart XCode6-beta
Now if you go to Project's Build Settings, Base SDK, you will see 7.1 along with 8.0.
Enjoy!
I'm using XCode6 and SDK version 8 regularly now, but I had to compile an app with version 7 of SDK, because version 8 was causing a lot of problems on devices with iOS8 installed, while in devices with iOS7 installed everything was running fine.. (!!)
I then:
went to XCode Downloads
browsed through some pages in order to get the latest XCode 5 version and downloaded it
opened the DMG with Image Mounter
rightclicked XCode icon and selected "Show package contents"
browsed Finder through Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
copied iPhoneOS7.sdk and pasted it to /Applications/XCode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
restart XCode
now you can select SDK 7.1 as the one to use in your project
this has immediately solved all of my issues with the app
From the command line, you can copy the 7.1 SDK from the current Xcode distribution to the Xcode 6 Beta distribution like this:
cp -r /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.1.sdk /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
The example above will recursively copy the contents of the iPhoneOS7.1.sdk folder to the appropriate destination for Xcode6-Beta5 . Copying the SDK to Xcode6-Beta6 would require adjusting the command line to point to the Xcode6-Beta6.app folder.
So we had a very similar issue, our goal was to debug an issue that only appears on iOS 8 (with an app built in xCode 5 on the iOS 7.1 SDK). We were trying to use xCode 6, but found it too unstable, and then decided to go back to xCode 5 and debug using UIAlertNotifications (as we could previously not connect our iOS 8 device to xCode 5)
After connecting our iOS 8 device to xCode 6, when we re-opened xCode 5, our iOS 8 device was recognized and we were able to debug using NSLog statements (break points still caused our app to crash - making it apparent that the issues related to break points are with iOS 8 rather than xCode 6 as others have suggested)
I hope this info is of some help to others out there!

How to run old simulators in Xcode 5 [duplicate]

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:
Set Deployment Target to 6.1 for both Project and Target
Downloaded iOS 6 Simulator
Copied the iOS 6 SDK into Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Reset Content and Settings for the simulator
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.
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.
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.
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!
Click to target or project > Build Settings > Achitecture > Supported Plateforms : change to iOS
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.
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.
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.
Please check whether your "Deployment Target" is higher than the ones available on your simulators.
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 :)
Click on your project root.
Then Go to the Build settings.
Then set iOS deployment target 5.0
Then select iphone6 on top left of your project.
See this image
Solved restoring an older version of the xcodeproj file.

Xcode 5 issue with simulator versions

I have Installed Xcode 5. It was just working fine. Now it doesn't show version menu against each simulator.
Before it was displaying all supported iOS versions next to simulator menu.
I want to test my app on different iOS version, how can I change the simulator version.
Just to add, you can actually download old versions of the simulator with Xcode5 itself - just go to preferences and you'll find them under Downloads:.......
No need to download the zip if you only wanted to change the deployment target.
Here are some screenshots.
In Xcode 5, Preferences -> Downloads -> Components to install additional simulators (if you have not done so already).
Possible issues:
Set the deployment target. If the target is set to iOS 7.0 then you cannot choose
between different simulators. If the target is set to iOS 6 then you should be able
to choose between the simulators.
Check in the Download preferences if iOS 6 Simulator is installed (you may have to
re-install it after upgrading to Xcode 5).
Xcode on Mavericks does not support the iOS 5 Simulator anymore.
Go to xcode click show package content and see if simulator sdk's are there at path "/Applications/Xcode_5.0.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs" if not either download them or copy paste from previous xCode from same path of old xcode
Restart xCode.
Check your Base SDK setting in project setting. Set to lower version and you should be able to see all possible simulator configuration.

Xcode 5 not showing Scheme option to run Simulator on iOS 6

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:
Set Deployment Target to 6.1 for both Project and Target
Downloaded iOS 6 Simulator
Copied the iOS 6 SDK into Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
Reset Content and Settings for the simulator
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.
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.
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.
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!
Click to target or project > Build Settings > Achitecture > Supported Plateforms : change to iOS
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.
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.
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.
Please check whether your "Deployment Target" is higher than the ones available on your simulators.
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 :)
Click on your project root.
Then Go to the Build settings.
Then set iOS deployment target 5.0
Then select iphone6 on top left of your project.
See this image
Solved restoring an older version of the xcodeproj file.

Resources