Hey I have done a lot of looking around and seen many answers for how to do this in older versions of Xcode, but they don't seem to aplly to Xcode 6. So how can I run an older version of iOS in the simulator with Xcode 6.
Thanks for the help
In the Downloads pane of Xcode's Preferences, download the iOS 7 or 7.1 simulator.
After it is downloaded, go to the Devices window (Window -> Devices) and click the Plus button to make a new simulated device with the system version you want. For example you might decide to make an iPhone 4s that's running iOS 7.
Now you'll be able to choose that device/system as the destination when you build and run.
Please note that matt's solution is not available on new version of OS X (El Capitan). Here are all the available Simulators:
Related
I am new to the iOS development world. I have an app in the app store and there is one issue in the app. The app was developed long ago (around 5 years ago) and some features of the app stopped running in the latest update (10.3.2). I need to fix the issue but I don't know what is the minimum Xcode and OS I have to install in my MacBook to move ahead. I expect some suggestions from you.
Firstly you've to convert that code on to the latest version of language (Swift/Objective-C). And only then you can debug/run that latest code for iOS 10.3.2 on Xcode 8.3.2
Otherwise one more option is there to debug the issues on iOS 10.3.2 with converting the code, you can make an .ipa file of the old code and install it on iOS 10.3.2 and debug the issue with the help of Device logs.
Device logs you can find in Go to Xcode > Window from menu > Devices > Choose your device and click on the "View Device Logs" button.
It would be better to use latest Xcode Version 8.3.2 and install the different iOS version simulators, which you want to test the app.
But first I would suggest you to test on device version(10.3.2).
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.
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.
I think the problem first occurred after I updated Xcode to version 5.0.2:
Whichever scheme I set in Xcode - whether it's iOS 5.0, 5.1 or 7.0 - when I build and run the project the simulator always launches my app in an iOS 7.0.3 environment (that's what the simulator's windows title states). So there is no way to test my app for downwards compatibility.
What's the problem here?
Is there some other trick that I need to perform in order to simulate my app in an iOS 5.1 environment?
After searching for solutions for hours I finally found the reason why I cannot select other iOS versions in the Simulator:
It's Mavericks!
In this post in the Apple Developer Forums (Developer account needed to access the forum!) an Apple employee states:
The iOS 5 simulators do not work on OS X 10.9 (Mavericks).
and he says the reason for that is:
The iOS simulator does not duplicate some of the low-level parts of iOS. For example, it uses the host OS X's kernel instead of trying to virtualize the iOS kernel. The iOS simulator requires that these subsystems look sufficiently similar between the simulated iOS and the host OS X. When a new host OS X changes too much it can break old simulators. At that point somebody makes an engineering and cost decision to either update the old simulator or drop support for it.
So if you have installed Mavericks (and do not downgrade if that's even possible) you have no option to run the Simulator with iOS versions < 6.
(If you want to test your app in the Simulator with iOS 6 and 6.1 SDK proceed as the other replies and comments on this page suggest: Go to XCode > Preferences > Downloads and download the corresponding simulator version in the section "Components".)
Check if YourTarget->Build Settings->Deployment->iOS Deployment Target is set to iOS7.0. If so, you need to decrease this value.
You must download to Xcode the iOS 5 SDK for the simulator.
Go:
XCode -> Preferences -> Downloads -> Components
And there you have the option of download the previous simulator.
After that, restart Xcode and before running is just select the version of iOS you want the simulator use:
I am starting the development of an iOS Application. One of the main goals for my application is to support as many devices as possible, so after some research I found that I would need my app to be supported on iOS 4.3 and above. I have OSX Mountain Lion and XCode 4.5 which comes with iOS 6.0 SDK and Simulator Pre-Installed.
I have downloaded iOS 5 Simulator from XCode preferences but there is no option to download the iOS 4 Simulator. Are there any workarounds to get the iOS 4 Simulator running on my Mountain Lion?
Open the scheme menu(Next to the run and stop buttons), and under the list of simulators/devices, there will be an option, "More Simulators...". You can download all the way down to 4.3 there. However, testing on a simulator is no substitute for testing on a device, and it would be best to get an iPhone or iPod touch with 4.3 installed on it to test.
You can try this:
Download a previous version of XCode prior to 4.5.x
Mount and open the disk image [.dmg]
Select "Go to folder..." command from Finder menu bar and digit the
path "/Volumes/Xcode and iOS SDK/Packages/"
Double-click iPhoneSimulatorSDKx_x.pkg [where "x_x" is the version of the iOS Simulator]
Click into the destination disk and click on the button "Select folder..."
Select your "Developer" folder
Start [or restart] XCode
In this way you'll replace the iOS simulator in XCode 4.5.x with a previous one. I don't know if this will work tho, because on OSX 10.8 Mountain Lion only iOS Simulator 5.0+ is available. If you really need to test your app[s] with iOS 4.3 [and prior] the best thing you can do is to downgrade OSX to 10.7 and install XCode 4.5.x [or 4.4.x]. By the way I think that testing your apps with iOS simulator 5.0+ is just fine.