I am finally done with my app. Testing begins! It works great in the most recent 4.3.2 but when I change the device version in simulator to something lesser and launch my app it automatically reverts to the newest 4.3.2 version. How do I overcome this and ensure my app runs on all iphones?
Thanks!
EDIT:
Figured it out! Set the deployment target in Project and Target to the lowest iOS. Next to the Run and Stop buttons, there is a drop down list "Scheme" select the deployment target. It should launch the simulator with the iOS version you select!
To allow simulation in 3.1.3, you must install an old version of Xcode. If you are a registered iPhone developer, you can download Xcode 3.1.4 for Leopard with iPhone SDK 3.1.3 or Xcode 3.1.4 for Snow Leopard with iPhone SDK 3.1.3. Be careful to install these in a different location to your Xcode 3.2.3 with iOS3.2/iOS4 (either select a different hard disk or rename your existing /Developer directory before you install).
Regards
Karan Shah
Related
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.
Is there a way? I just need to run my app on my iPod which is 5.1 and my current version won't let me...?
This is very simple. I came across the same problem over the weekend when I upgraded my iPad and iPhone to the latest iOS 5.1. The version of Xcode I had installed at that time was not able to run applications for my devices after the upgrade.
After doing a few things I was able to successfully run applications on my upgraded devices. Below I present a few simple steps for you to follow:
1) Download the latest version of Xcode which currently is 4.3.2 which includes SDKs for Mac OS X 10.7 Lion and iOS 5.1 suitable do install your application onto your iOS device
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
2) During installation the installation window will ask you whether you would like to remove the previous version. Remove the previous version of Xcode and let it install the new version.
3) Once you have the latest version of Xcode installed you can run the Xcode application and open up your recent project.
4) Once you have your project opened, you may need to and certainly in my case I had to, code sign and point your project to the right development profile settings in the build settings.
5) Once all code signing is correct, on the top left you can select what you want to build to, make sure you have your iOS device connected and the button where it says iPhone simulator 5.1 to yourname's iphone
6) and then Xcode will build successfully onto your device
Download it from the app store.
http://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12
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.
How can I test multiple iOS versions in the Simulator? I can only seem to test iOS 4.1. I would like to be able to test 3.x versions in the simulator as well.
Cocoa with Love has a good post on how to do this
To allow simulation in 3.1.3, you must
install an old version of Xcode. If
you are a registered iPhone developer,
you can download Xcode 3.1.4 for
Leopard with iPhone SDK 3.1.3 or Xcode
3.1.4 for Snow Leopard with iPhone SDK 3.1.3. Be careful to install these in a different location to your Xcode
3.2.3 with iOS3.2/iOS4 (either select a different hard disk or rename your
existing /Developer directory before
you install).
In the "hardware" menu are options to change the device and the version.
You can install several version of SDK in different path.
To download an older SDK :
http://iphonesdkdev.blogspot.com/2010/04/old-versions-of-iphone-sdk.html
I have a project build to work with iPhone 3* and 4. Base SDK is set to 4. Target OS is set to 3. I have an iPhone 3GS with 3.1.3.
Xcode 3.2.3 refuses to install the app on this iPhone. It refuses also to run the simulator.
WHen I try to debug on the device I get "Failed to upload". When I try to debug on the simulator I get a message telling me that "simulator could not find the sdk"...
Any clues?
thanks
I have resolved partially the issue changing the compiler from GCC 4.2 to LLVM GCC 4.2.
Don't ask me why, but now I can install the application on my 3GS running 3.1.3.
The question is: why GCC 4.2 is not working.
At least the solution for this question is this.
To expand on Jason Coco's answer: If
you go to the Project Info screen and
click Build, you can choose what Base
SDK to use (4.0) and then scroll down
to iPhone OS Deployment Target version
and set it to 3.1.3 or whatever.
However, you also have to go to the
Targets section under Groups & Files
(red bullseye) select your target and
get the Info build page, and set your
iPhone OS Deployment Target there too.
Did you do that also? (from the link posted)