Xcode 4.3 and iPhone Simulator 4.2 - iphone

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

Related

run app using xcode 4.6 in ios 4.3 simulator

I am actually trying to run my application in 4.3 simulator from xCode 4.6. I copy the sdk for simulator 4.3 at the path, it builds successfully but cant run the application in simulator. So now what can I do to solve the problem?
Thank you in advance
If you are using Mac OS 10.7.x and have upgraded to Xcode 4.6, then you could have or download simulator 4.3 version. But, if you are using Mac OS 10.8.x, then you can not have simulator 4.3 version. The reason is 4.3 simulator on Mac OS 10.8.x crashed a lot, so Apple has removed that.
Check this link:- http://iphonedevsdk.com/forum/iphone-sdk-development/111568-what-happened-to-the-ios-4-3-simulator-in-xcode-4-6.html
Go to Xcode -> Preferences -> Downloads and make sure the "Target SDK" you have selected in your project is in fact installed under the Downloads windows. For me this magically was uninstalled. Once i installed the SDK that my app was using, all worked again
Also Check
Xcode>Preferences> click Downloads tab. The supported simulators are in there.
Please try this and let me inform any problem still exists.
Go to Xcode -> Preferences -> Downloads -> Components
There you can see the list of simulators (v4.3 also there). Click on install against the simulator that you want to install.
After Installation, restart Xcode
Go to the project info and set your build target to iOS Version 4.3
Now the simulator version 4.3 will be listed in your schema selector.
Cheers :)
Note: If you are using Mac 10.8, you cannot have 4.3 simulator

dont have iphone simulator folder

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

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

Xcode 4.2 and iOS SDK 4.0

I installed Xcode 4.2 and it only has iOS SDK version 5 under /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk. However, my iOS Deployment Target is specified as iOS 4.0. The problem is that I cannot launch my app in the iOS Simulator if the version of the Simulator is lower than 5.0. That is, the program crashes under those:
iPhone 4.0 Simulator
iPhone 4.1 Simulator
iPhone 4.2 Simulator
iPhone 4.3 Simulator
Before I had Xcode 4.0 and everything worked correctly under all of the above simulators. Now the only working version is iPhone 5.0 Simulator.
Am I doing something wrong? How do I test my app on older iOS versions? Is it even possible with Xcode 4.2?
UPDATE: It all started working after I changed the compiler from LLVM GCC 4.2 to Apple LLVM compiler 3.0. But I'm still interested if anyone knows how to fix the stuff with the old compiler.
You must download in Components : iOS 4.0 and 4.1 Debugging Support and iOS Simulator for 4.x
You can update Deployment Target to iOS 5 because it's a later version of SDK that "knows" all about 4-version. Keep in mind that if no debug build if SDK < OS.
Yes it is possible you can install the older version of IOS SDK
Download xcode_3.2.6_and_ios_sdk_4.3.dmg
Mount the .dmg file Inside the disk image there is an invisible "Packages" folder.
To open it select "Go to folder..." command from Finder menu bar and digit the path "/Volumes/Xcode and iOS SDK/Packages/"
Now double-click "iPhoneSimulatorSDK4_2.pkg"
Click into the destination disk and a button "Select folder..." will be revealed
Click the above button and select your "Developer" folder
Install and Restart Xcode.
This will install the Simulator 4.2 SDK (both iPad and iPhone) inside the folder "/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/"
Now inside XCode 4.2 you can select this simulator from the menu.
I got this from following link and it works for me..
https://apple.stackexchange.com/questions/31412/how-can-i-install-iphone-simulator-4-2-on-xcode-4-2

How to test iphone app using simulator with previos ios version in xcode 4.1

In xcode 4.1 there is only one ios version of simulator - 4.3.2. We can set up the deployment targer but I couldn't find where to change the ios version of simulator.We want to test that our app will run on devices with ios 3.1. How can we do this using iphone simulator?
If you have access to a previous version of Xcode, containing support for the SDK you need, you can copy the SDK files over to your current Xcode installation. Have a look at this S.O. answer.
In short, you open Xcode package in the Finder, then access the SDKs folder to copy the SDK versions you need.
You can try installing the IOS sdk for the previous versions. You will need to install the sdk's in the following location:
~/Library/Application Support/iPhone Simulator