Install simulator SDK 8.0 manually in Xcode7.0 - ios

It is known that Xcode 7.0 does not support the iOS 8 simulator any more. So when I go to the download preferences I only find the iOS 8.1 simulator and higher. But I really need to test my code on iOS 8.0 and I don't have any device supporting that version, so I need to do this from the simulator.
I downloaded Xcode 6.0.1 (to extract the iOS 8.0 simulator) and installed it in my applications, but I could not run Xcode (since it cannot be run on El Capitan).
So what I tried to do is copy/paste the iOS 8.0 simulator:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk
and
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 8.0.simruntime
from Xcode 6.0.1 to Xcode 7.0 and restarted the mac
I then re-open Xcode 7.0, and go to Window -> Devices and enter the following:
I then hit "Create", but once created it shows up as iOS 9.0, and once I run the code on that simulator it reads the OS as 9.0 and not 8.0
Can anyone help me solve this please?

If you can't add an iOS 8 simulator, as an alternative, try to run this app on a device running iOS 8 with developer provision using xcode. This way it will also help to pick most of the LOCs where it is actually crashing. Also, for a random crash you might need to analyze app memory management using Instruments tool (but it also depends on crash reason).

you can download it from xcode prefrences -> Downloads
for manually you can get it from old xcode path(/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone Simulator) and paste it new xcode with same path.

Related

Xcode 10.3 where are the other iOS versioned simulators [duplicate]

I have the Xcode Version 6.0.1 (6A317) on Mac OS X 10.9.5 with all iOS 8 simulators. I have also downloaded the iOS 7.1 simulators.
I am developing an app for iOS 8 and iOS 7.
The problem I encounter is that Xcode 6 doesn't show the iOS 7.1 simulators in the devices menu. At some point it did show them but on my newly created Xcode 6 project it does not.
I was looking at some stackoverflow solutions.I have addded the iOS 7.1 simulators Window - Devices - SIMULATORS. They are also checked with "Show in the Run Destionations Menu",however they are not shown.
I found a workaround by setting the Project and Target Deployment Target to 7.1. However, this is a stupid solution since for every test I need to manually switch them forth and back 7.1-8.0
This is my first ipad app and it worked perfectly under Xcode 5.1.1. iOS 7 and iOS 8 (CREATED UNDER Xcode 5.1.1.). Now I have created a project in Xcode 6.0.1. and the project doesn't have the simulators showing correctly and 95% of the app doesn't work.
I am new to iOS development but I suppose that this is a bug, but I am unsure. Please help.
The deployment target is the minimum OS version you intend to support.
As you stated, you need to set the deployment target to 7.1 in order to see the 7.1 simulators. If your deployment target is 8.0, the 7.1 simulators will not be available in the run destinations menu. This is the correct behavior because you can't run on iOS 7.1 if your deployment target is 8.0.
I already had deployment target 7.0 and simulator still wasn't available for 7.1.
I fixed the issue though by going into Xcode preferences, selected Downloads and re-downled the missing 7.1 simulators under 'Components'. Although I previously had 7.1 simulator, the Xcode 6 upgrade had seemed to remove them.

Updating a device to iOS 11.2 breaks support with Xcode 9.1

I tried to run my app on a device running iOS 11.2 and received the following error:
Could not locate device supported files.
This iPhone 5s (Model A1457, A1518, A1528, A1530) is running iOS 11.2
(15C114), which may not be supported by this version of Xcode.
I have used iphone 5s(version 11.1.2) and I want to build my project from xcode 9.1(ios 11.1).
It seems that Apple released iOS 11.2 to the public without releasing Xcode 9.2 yet (the Mac App Store reports 9.1 as latest at the time of this writing), which includes the iOS 11.2 SDK necessary to target devices running iOS 11.2. You should be able to run this on your device with the Xcode 9.2 beta, which you can download from the developer download page if you have a developer account
EDIT: Xcode 9.2 is publicly available now, and you can download it from the Mac App Store
Xcode 9.2 has finally been released. You can update it from App Store or just download it here: https://download.developer.apple.com/Developer_Tools/Xcode_9.2/Xcode_9.2.xip
I have Xcode9.2 on my MacBook and 8 on my MacMini. So I just copied the 11.2 DeviceSupport DeveloperDiskImage .dmg and .signature from the MacBook to the MacMini. Worked fine.
For the rookies like me, if you get a message similar to this:
"This iPhone 6 is running iOS 11.2.X, which may not be supported by this version of Xcode."
It means you have to update Xcode.
I hit this problem when my phone was running 11.2.6 and I was running Xcode Version 9.0
You can update it from App Store or just download it here: https://download.developer.apple.com/Developer_Tools/Xcode_9.2/Xcode_9.2.xip
Get the device support file from here if latest available Device Support File
Any one having this kind of Error when your device OS version is updated and Your Xcode version is not.
Xcode - Version 9.1 (9B55)
Device Version - 11.3
Solution:
Find your friends who have latest Xcode 9.x
From following ways you can get device support files
Go to Finder and Search
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/
Right click on Xcode -> Show Package Contents then navigate to Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/11.X
Copy the 11.X
Please note X - will be Versions
Also you can download from this link - https://github.com/filsv/iPhoneOSDeviceSupport/issues/7
After you get device supporting files, Add all the new version to yours Xcode DeviceSupport folder
Restart the Xcode and You are Ready to debug :)

iOS 9 not supported by Xcode 6.4

The iOS 9 update is not supported by Xcode 6.4 for testing purpose. is there a workaround to connect my device to Xcode for testing. If not can I roll back my update to ios 8.4.1( previous update ).
There is a way to deploy to iOS 9 devices with Xcode 6.4. I ended up doing this because I of course had updated my phone right away, but I did not quite want to go to Xcode 7 due to Swift 2 and the lack of support by coacoapods, yet.
Here is what I did:
I downloaded Xcode 7, but did not install it.
Instead I browsed inside the dmg file (Show Package Contents on right-click) to /Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport.
I then copied the folder named 9.0 (13A340) into the same location of my current installation of Xcode 6.4.
Lastly I renamed the existing 8.0 (12A365) folder to just 8.0 - I am not sure if this is necessary.
I am now able to deploy to my phone with iOS9 from Xcode 6.4.
I hope this is helpful to somebody!
The iOS 9 update is not supported by Xcode 6.4
You've hit the nail on the head. iOS 9 is not supported in versions of Xcode earlier than iOS 7. Just update to continue developing.
This worked for me to allow me to test my app that was built against the iOS8 SDK (on XCode 6.4) on a physical iOS9 device.
Rename XCode to Xcode 6.4 in the Applications folder
Install Xcode 7 from the downloaded DMG (don't update from the AppStore)
Open XCode 7 and build a test project (it can be an empty iOS9 app) and run it on your physical iOS9 device
Close Xcode 7 and open XCode 6.4
Build your app against the iOS8 SDK and debug on the physical iOS9 device
It seems like debugging on XCode 7 first updates something on the device and then XCode 6.4 can debug properly.
(This is useful for example, if you don't want to migrate your Swift 1.2 code to 2.0 yet)

iPad is not connecting it's showing OS Version

I am new for iOS and when I connect my iPad with my system it's showing an exception like in the image below.
I am using Xcode 6.1.1 and the iPad is running iOS 8.4.1.
[
If you're running iOS 8.4.1 on your iPad, then you'll need to upgrade to Xcode 6.4
additional reference
When you running on device then above problem occur, so You have to download new Xcode, Download Xcode 6.4 as below links.
XCode 6.4
You will require Xcode 6.4 in-order to mount your iPad: https://developer.apple.com/xcode/download/
This occurs when you plug in a device that is running an OS version above what your current version of Xcode is.
One solution is to always use the most recent non-beta versions of Xcode and iOS.
However, if you have a beta version of iOS on your device, but still want to develop and build with the non-beta release of Xcode, there is a workaround!
1) Have both the current release of Xcode, and the Xcode-beta installed on your machine.
2) Make sure they are both closed.
3) Plug-in your device.
4) Open Xcode-beta and allow it to recognize your device (process symbols...)
5) With phone still plugged-in, quit Xcode-beta.
6) Open stable Xcode version, and your device will be recognized!
I currently do this all the time because I have iOS 9 beta on my test device, but submitting apps to TestFlight using Xcode 7 (beta) is not yet supported, so I needed to use Xcode 6.4 as my main IDE.

iOS 9 not supported on Xcode 6.3

I downloaded the iOS 9 beta for the iPhone 5s and wanted to test an application that I have finished but now it says that my iPhone is an ineligible device. Is there a way I can still run apps on my iPhone without downloading the Xcode 7 beta?
You can RUN App on iOS 9 device using Xcode 6, But firstly you need to build your app on XCode 7, after that it will support on XCode 6.
I dont know the reason.
I have checked this on My Mac.
[EDIT]
Steps
Build the project on Xcode 7 while Xcode 6 is opened on the same
project.
Disconnect the device and reconnect it.(Now u can run ur app on XCode6, It may take little time to load device)
When i have checked iOS9 with Xcode6, Bugs are very less.
So i have plan to support iOS9 with XCode6 for quick release. Later i will do for XCode7.
You can build to an iOS 9.0 or 9.1 beta device from Xcode 6.4, not out of the box though.
Download Xcode 7.0 and/or Xcode 7.1 beta dmg, and copy the
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/9.0 (13A340)
from Xcode 7.0 or:
.../9.1 (13B5110e)
from Xcode 7.1 beta folders to corresponding folder in your Xcode 6.x.
After restarting Xcode iOS 9.0/9.1 devices will no longer be marked an ineligible.
If you installed iOS 9 beta onto your iPhone, then you cannot develop on it without Xcode 7.
However, this is not a completely terrible thing; you can readily have both Xcode 7 and Xcode 6 on the same computer.
(What you cannot do, according to Apple, is revert your iPhone back to iOS 8 - but there are some comments below from people who were able to do it.)
Install the latest XCode. Keep both versions on your Mac. Give Keep Both when installing the new XCode and do not give Replace present XCode during the installation.
Go to application, right click XCode --> show package contents. Copy the latest version from the path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
and copy to the Xcode you are currently working in the same path. Find the screen shots below and start working.
Happy coding.
Don't need build your project at Xcode 7.0, just open and select your device, after that, open your Xcode 6.4 and your device will automatically update the necessary things to build app by Xcode 6.4
Not the easiest or correct way. But if you really have to test once or twice in the device.
In Xcode,
Product -> Archive
Build for Ad-Hoc Distribution
Connect the device
Open Itunes, Select the device,
Select Apps, Drag and drop the .ipa file generated in step 2 to itunes
Press install
App will be installed to the ios9 device.
No, you have to download Xcode 7 beta since tools like the compiler and debugger are part of the IDE.
As stated on Apple Developer Website (here), Xcode 7 Beta has the Swift 2 compiler and SDK for iOS 9. My guess is, your current Xcode doesn't know how to compile for iOS 9 SDK.
However, Apple doesn't specifically mention Xcode 7 as a requirement. It states that OS X Yosemite or later is required.
I don't think you can specifically download an SDK that isn't supported inside Xcode. For example, you can go to Xcode -> Preferences -> Downloads and under Components you may see the iOS 9 Simulator.
If you go to the iOS 9 SDK and download it, it seems to only download the device OS and not the entire SDK.
In conclusion, I believe that the SDK "kit" is integrated with Xcode 7 that would allow you to develop on your iOS 9 Device. Without upgrading, I don't see you being able to do that. I could be wrong though.

Resources