dont have iphone simulator folder - iphone

Some months ago when the newest iphone simulator version was 4.3.1, I removed the iphone simulator folder from my hard drive to an external hard drive.
Now when I drag it back again the version was still 4.3.1 so I cant use it for saving media on it.
Is it possible to like reinstall something to get the newest version (6.0)?

To confirm that the install location of the iOS Simulator: In XCode 4.5.2 (and most other recent versions of XCode, not sure when this was first introduced), the iOS Simulator is installed at:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications
With the current version of the iOS Simulator, there aren't separate applications for different iOS versions. Instead you use the menu option "Hardware" -> "Version" to select a different iOS version to simulate.
If it's the "Application Support" folder that is missing (where simulator copies of your apps get "installed"), you might check:
/Users/<username>/Library/Application Support/iPhone Simulator
Note: Mountain Lion now hides the "Library" folder from the default Finder view. It's easy enough to look in that path for a "6.0" (or other iOS Simulator version) folder to see if yours exists there.
Finally, if really need a fresh copy of the iOS Simulator, to install another version (assuming XCode 4.5.2 or similar):
"XCode" menu -> "Preferences" -> "Downloads" tab -> Select another Simulator you'd like to install

Related

My Xcode 10.0 cannot locate my Iphone SE because its running ios 12.4

My Xcode 10.0 cannot locate my Iphone SE because its running ios 12.4. When i try to run an app using my Iphone i get an error saying "This Iphone SE (Model A1662, A1723, A1723, A1724) is running IOS 12.4 (16G77), which may not be supported by this version of xcode."
This means that your Xcode version just doesn't have the platform details.
You can verify this for yourself by opening your Applications folder and right-clicking Xcode, choosing Show Package Contents, and going to Contents -> Developer -> Platforms -> iPhoneOS.platform -> DeviceSupport. Here there will be a bunch of folders that are labelled with iOS version numbers. If the folder labelled 12.4 isn't there, there are several ways to solve this:
Download the latest Xcode (You should probably do this and update your system to Mojave).
Then copy-paste the version folder to your version of Xcode or just use the new Xcode. If for some reason you're unable to load the latest Xcode because your system is just that outdated then you can find it on the internet somewhere though I don't recommend this path.
Just FYI:
Xcode not showing latest version of iOS?

Xcode 4.3 and iPhone Simulator 4.2

Is there a way to install iPhone Simulator 4.2 in Xcode 4.3 for Lion?
I only can find how to install it in Xcode 4.2, but not Xcode 4.3 for Lion.
I have found a way to install iPhone simulator 4.2 to Xcode 4.3:
Follow the instructions by Parth Bhatt, but install the simulator in a temporary folder ('Developer' folder doesn't exists in Xcode 4.3).
Once installed, go to <tmp_dir>/Platforms/iPhoneSimulator.platform/Developer/SDKs, and you'll find a file named "iPhoneSimulator4.2.sdk".
Open a new Finder window and go to /Applications and right-button on Xcode, select show the package contents, navigate to /Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs, you will see a .sdk files, one for each iPhone simulator installed in Xcode.
Drag the "iPhoneSimulator4.2.sdk" file from your temporary folder and drop inside SDKs folder of Xcode package.
Restart Xcode and that's all (you can delete the temporary folder).
If your project has a Deployment target to 4.2, you'll have the 4.2 simulator available.
Go to "Preferences -> Downloads tab -> Components tab" and install what You need. At the moment it lets me download 4.3 and 5.0 simulators.
I think its not possible. You can just download and install the SDK provided by Apple

IOS 5.0.1 With XCode 4.2.1 Saying "does not match any of the versions of iOS"

I am currently on Xcode 4.2.1 and I am running an IPad 1 using 5.0.1. However, I am getting this error message:
The version of iOS on “Personal iPad” does not match any of the
versions of iOS supported for development with this installation of
the iOS SDK. Please restore the device to a version of the OS listed
below, or update to the latest version of the iOS SDK; which is
available here.
OS Installed on Personal iPad
5.0.1 (9A405)
Xcode Supported iOS Versions
That's right! It is giving me absolutely no supported iOS versions. I have seen other posts about this for older versions of Xcode/IOS, but they also had supported versions.
Edit: I can run the program just fine in the iOS device simulator. It runs in IOS 5. Also, my provisioning profiles are listed under the device and they have matched my certificate in the KeyChain.
Ok! I downloaded the installer program for XCode. Uninstalled XCode and reinstalled it through the installer program and it works like a charm.
So, I ran this to uninstall it:
sudo /Developer/Library/uninstall-devtools –mode=all
Then I just used the installer from the App Store and now it works just fine with my iPad.
Thanks.
I didn't need to uninstall xcode.
just start the installer and press "update"...
For those who wan't to avoid upgrading Xcode, do the following:
Download the Xcode version dmg containing the iOS SDK you need
Make sure Xcode is not running
Double click the downloaded Xcode dmg, right click the Xcode.app icon, choose "Show Package Content"
Copy Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneOS.platform/Developer/SDKs (on you local machine)
Copy Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer (on you local machine)
Copy Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport (on you local machine)
Right click Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/, choose "Make Alias", rename the alias to "Latest"
Start Xcode

iOS simulator only list the latest iOS version. How can I set earlier versions

According to the documentation should be able to choose which iOS version the simulator should run, however only the latest 4.3.2 is listed under "Hardware/Version".
The helps says:
"To set the iOS release used in the simulation environment, choose Hardware > Version, and choose the version you want to test on."
I don't want to support 3.x (although it would be nice) but at least I want to simulate my app on 4.2, 4.1 and 4.0.
What's going on? Why aren't they listed?
UPDATE:
I'm on Lion so I cannot install an earlier version of Xcode. Before my Upgrade I could test different versions easily.
the problem is that you have no other Simulator SDK installed which can be used. As #dorada has mentioned you have to install an older Xcode which in fact doesn't work because you're using Lion. I haven't tried it with Lion but principally it should work like before with Snow Leopard.
I'm referencing to my other answer how to get an older Xcode (don't know if it's still working)
After you have an older Xcode version, mount the image an navigate with terminal to that volume. There should be a hidden folder Packages. open that folder with open . and locate the two .pkg files you need (e.g. iPhoneSDK4_0.pkg and iPhoneSimulatorSDK4_0.pkg) and install both.
They will appear in your root directory and you have to move them to your Developer dir (don't simply overwrite, it will delete all other SDKs. go to the last different folder it should be iPhoneSimulator4.0.sdk\ and copy that one)
DONE (and at that point I have verified it: it works on my Lion. I used the dvd image which I have started backup'ing since 3.2.1)
Although iPortable has the correct answer I decided to post a step-by-step guide which is easer to follow:
Download Xcode 3.1
Mount the dmg file
In Finder menu select "Go\Go to folder" and enter "/Volumes/Xcode and iOS SDK/Packages"
Install the simulators you need (Double click)
Copy the simulation folders from /Platforms/iPhoneSimulator.platform/Developer/SDKs/ to /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/
If your have some SDK missing Install the missing SDK from "/Volumes/Xcode and iOS SDK/Packages" and copy subfolders from /Platforms/iPhoneOS.platform/DeviceSupport/ to /Developer/Platforms/iPhoneOS.platform/DeviceSupport/ (for me they were all there from 3.1 to 4.3)
you may download the older ios sdk / xcode from . https://developer.apple.com/downloads/index.action
(i found this answer in another stack overflow topic actually, but now i can not seem to find that question!)
Open Xcode and in the menu at the top left, where you select what device to run on, click "More Simulators..."
The download section of Xcode preferences will open,
Click the "Components" tab.
You will see a list of simulators that can be installed, click install on version you need.
The simulator will need to restart to install.
To run the newly installed version of the simulator just select it from the run menu in Xcode.
You actually have to install previous simulator versions, they aren't there on a new install.
Maybe you can search and download them somewhere? - we keep them on a shared drive at the office.
After installing the Xcode 4.2 for Snow Leopard, I noticed there was a choice for iPad 3.2 Simulator, but using it just brings up some alerts that say "iOS Simulator could not find the SDK. The SDK may need to be reinstalled." and another alert that says "Simulated application quit. Click Relaunch to try again." with Quit, Switch SDK, and Relaunch buttons.
I can successfully use iPhone 4.0 Simulator, iPhone 4.1 Simulator, iPad 4.2 Simulator, etc up to iPad/iPhone 5.0 Simulator, but really would like to have iPad 3.2 Simulator and iPhone 3.1.3 Simulator and earlier down to 3.0 if possible.
Our apps generally run all the way back to 3.0 and we occasionally receive bug reports from earlier iOS users, and would love to be able to debug these issues more effectively.
I tried the technique summarized by Tibidabo and although I am able to copy the simulator folders as mentioned, and though they show up as choices in Xcode, I cannot get them to actually run as simulators and I get the same problem alerts mentioned above.
What are other developers doing to support debugging of older iOS versions?
Go to Project Settings -> Summary an change Deployment Target.

Why is the iPhone Simulator 3.0 not showing up in Xcode?

I have installed the new 3.0 SDK, but when I start up Xcode, I don't see an option to build for "Device - iPhone OS 3.0" or "Simulator - iPhone OS 3.0"
The Xcode About box says I am running: 3.1.2
Is there something else I have to do?
I think you need to upgrade to Xcode 3.1.3. I have the latest version and that's what my About box reads.
If you are sure you downloaded the latest version, perhaps you installed in to a different location?
If you are using an existing project you may have to tell your project to build to the 3.0 targets. I didn't have to do this for any of my projects but ...
Under the Deployment section of your project properties you should see:
iPhone OS Deployment Target - (change this to use iPhone OS 3.0)
You can also check that the Architectures section has the Base SDK set to 3.0.
This happens quite often when downloading Apple's sample code projects which are targeted for iOS 3.x but you've got iOS 4.x.
To show Simulator option go to Project Info window -> General tab -> Base SDK for All Configurations - choose Latest iOS.
If it doesn't appear straight away, close and reopen Xcode.
This is what worked for me:
I clicked on the box (where I expected iPhone Simulator to be shown), right clicked manage scheme. After that deleted all schemes, and in similar way, created a new scheme. It automatically produced all simulators including the ones for devices.