Run a iOS App on version 4.3 on Mountain Lion - iphone

I'm using XCode's latest version on Mountain Lion and would like to test my Apps for iOS 4.3.
How can I adjust the simulator or install previous versions of XCode to test for iOS 4.3 in stead of testing for 5.1 only?
Within my XCode preference -> Downloads I'm not able to see the 4.3 simulator
EDIT:
I manually copied the folder of the iPhone 4.3 SDK from an old iMac which had an old XCode running to my working computer. Turned out that this fix only worked for device testing and not for testing in the simulator. So I needed to have an old device with iOS 4.3 installed, this eventually worked.

You need to install the 4.3 simulator.
Go to "Preferences" in Xcode and then the "Downloads" tab and you may see this:
I made this screenshot on my 10.7 machine but looking at the (supposedly) identical Xcode install on 10.8, I only see the 5.0 simulator as an installable option. It may be that you have to install the 5.0 simulator before the 4.3 one appears, or 4.3 is only supported on Lion.

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

iPhone with iOS 6 and Xcode 4.2 issue

I have upgraded my iPhone to iOS 6, however I am currently on Xcode 4.2 (on Snow Leopard). Now I am getting this error message:
The version of iOS on “xxx xxx” 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 iOS listed below, or
update to the latest version of the iOS.
Is it possible to restore my iPhone to older version say 5.1 or some how make my Xcode to support/recognize iOS6?
I followed the following steps, to resolve my issue by making Xcode to support iOS 6:
1.First download Xcode 4.5 .dmg file from Here (You would need developer account).
2.Then mount this image and use "Show Package Contents" from context menu.
3.Then copy the following folder
Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/6.1
(10A403)
to your mac's following folder (This path may differ from mac to mac based on its version. On Snow Leopard you may find the Developer folder in Finder under PLACES section, and probably on Lion, you have to right click the Xcode.app and have to use Show Package Contents):
Developer/Platforms/iPhoneOS.platform/DeviceSupport
4.Similarly copy the iOS 6 SDK folder from following directory:
Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk
to your mac's following folder
Developer/Platforms/iPhoneOS.platform/Developer/SDKs
5.Also copy version.plist from Contents/Developer/Platforms/iPhoneOS.platform folder to your mac's Developer/Platforms/iPhoneOS.platform folder.
6.Re-start Xcode and re-connect the device(s).
Bingo !! now Xcode supports recognizes iOS6 device(s) and even I am able to run and debug my app (built for older SDKs) on my iPhone with iOS6 (I am not sure about iPhone 6.0 simulator though).
However, answer to How to restore iPhone to older version say 5.1 is still pending.
You cant debug iO6 device in Xcode 4.2. iO6 device debugs only in Xcode 4.5 (latest one). And most importent for installing Xcode 4.5, in your machine must have at least Lion Operating System.For efficiently debugging of iOS device, You must upgrade your OS.
I had the exactly same problem !
Downgrading iOS 6 in your iPhone is not officially supported by Apple anymore :
https://discussions.apple.com/thread/4533316?start=0&tstart=0
What works for me was to install Lion in an external HD USB, upgrade Xcode to the latest version and upgrade the Provisioning Profiles in my Apple Developer account for this environment.
Upgrade to Xcode 4.5 (and OSX mountain lion). No previous version of Xcode supports iOS 6. You can also check if you can restore your phone using a previous version of iOS by getting the .ipsw file and option-clicking on "restore" button when selecting your device on iTunes.

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

Unable to run simulator for iPhone3GS from xcode3

I'm unable to run simulator for testing iPhone3GS below version of 4.0. I have built my app with xcode4 and now, I want to test it how it works in iPhone3GS. I have read that I should install previous version of xcode, so I have installed xcode3. My IPHONEOS_DEPLOYMENT_TARGET is set to 3.1 in projects settings (xcode3). But still I can't see any iphone versions below 4.0 in simulator select list. What am I missing?
Well first of, the latest version of Xcode 3 only comes with the iOS 4.* SDK so there is no iOS 3 simulator.
You will need to installe a version of Xcode 3 with iOS 3.* SDK to get the 3.* simulator, but you can only get them in de bundle version of Xcode.
What I do is test my apps on a device running iOS 3.1.2 with Xcode 4 and dropping support for iOS 3.* in new projects (94% of my user have switch to iOS 4).
in this case you have to click the target section of the xcode and thre you have to chage the setting >build>latest ios.
You can make and add hoc build and install it on an real device that run the desired os version.

"No provisioning iOS device connected"

About 3 months ago I set up my iPhone for development; installed the provisioning profile, updated the device to the latest version of iOS, namely 4.3.3 (8J2) and testing applications on my iPhone worked 100%.
Today I went back to working on one of my iPhone applications after not having worked in XCode for about a month, and now I do not seem to be able to deploy applications to my iPhone. When I try deploy and run on my iPhone, I get the message "No provisioning iOS device connected", even though my iPhone is connected.
If I look in the organizer window of XCode, I see my iPhone listed there under DEVICES, but I see the following message when I select my iPhone entry:
The version of iOS on “Bruce Hill’s iPhone” 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 Bruce Hill’s iPhone
4.3.3 (8J2)
Xcode Supported iOS Versions
4.3.3 (8J2)
4.2 (8C134)
4.1
4.0
4.0.2
4.0.1
3.2
3.2.2
3.2.1
3.1
3.1.3
3.1.2
Does anyone have an idea what is going wrong here and why XCode seems to think that my iPhone has an unsupported version of iOS installed, when in fact the latest version is installed?
UPDATE:
I have tried restarting my Macbook Pro, doing a hard reboot of my iPhone and removing my iphone entry in the organizer. None of these actions helped. My iPhone keeps getting listed in the organizer with an orange circle and if I hover over my iPhone entry I get a tooltip message that says "This device is busy or otherwise unusable by Xcode."
I did notice that in my developer information in System Profiler it only shows sdk 4.2 (8C134) installed, not 4.3.3 (8J2), even though Xcode lists it as being present and supported in the message I quoted above. Here is my developer information:
Version: 3.2 (10M2423)
Location: /Developer
Applications:
Xcode: 3.2.5 (1760)
Interface Builder: 3.2.5 (823)
Instruments: 2.7 (3017)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.4: (8S2167)
10.5: (9L31a)
10.6: (10M2423)
iPhone OS:
4.2: (8C134)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
I think what happened here is that I installed Xcode and then later did an update of my iPhone to iOS 4.3.3. This problem then occurred because my Macbook Pro actually didn't have the SDK for 4.3 installed, even though Xcode seemed to think that it was installed.
So, I got this working by downloading an installing Xcode 4.0.2 and iOS SDK 4.3. I downloaded Xcode from here: http://developer.apple.com/xcode/
Once Xcode 4.0.2 was installed and running, I connected my iPhone, it showed the orange dot again briefly (for about 10 seconds or so) and then this turned to a green dot and I was able to deploy my application to my device again... FINALLY!! :) In my developer settings in System Profiler, I also see iPhone OS: 4.3:(8H7) listed there now. I think that this issue would also have been resolved by installing Xcode 3.2.6 with iOS SDK 4.3, as this would, I think, also have resolved the missing or corrupt SDK 4.3 on my Macbook, but I chose to download and install the latest version.
So, bottom line: Xcode working again! I am happy! :)
I had a similar problem with my 3GS and i solve it by resetting iPhone's developer configuration. Try to hard reset your device (here' the link - don't worry, your dta will survive). Then remove your device from Xcode organizer and add it again.
Also try 'Cleaning' your Xcode project and just turning off your phone and back on again. Restart your computer while you're at it. After it's back up, open Xcode, then plug in the device. It should do its thing then start working again. I had the same issue a few times when I updated and hadn't disconnected/reconnected everything.