iPhone:What is the version of Xcode to use for developing apps for iOS 4.2.1? - iphone

I am having the updated iOS 4.2.1 iPhone. I want to develop apps for that. I have Xcode 3.2.5 version now, but it shows upto only 4.2 device to select, doesn't show 4.2.1. What version of Xcode i should use for developing apps for this device? Please advise.
Thank you.

always use the latest stable version for development.
There is no dedicated version for 4.2.1, use what you have and let XCode collect the missing debug information from your device.

That is currently the latest stable version.

Related

upgrade to iOS 6.1.2 sdk available?

I recently updated my iphone to 6.1.2.. I am no longer able to use my iphone for development as i have the ios 6 sdk! What should i do now? Should i upgrade my ios sdk to 6.1.2?Is it available??.. I was looking to do that but all i could find was several beta versions of ios 6 sdk which clearly don't specify what version they are in the apple developer site??
I tried to upgrade my ios sdk from XCode -> Preferences -> Downloads .. But apparently there isn't any update to the ios sdk 6.1.2 available there!
Any suggestions on how i can resolve this issue?
Help is greatly appreciated.Thank you!!
You need to upgrade your Xcode to support your Iphone's os version... You can easily upgrade your Xcode from AppStore in your mac.....
Just click App Store and then see the update tab... you will got what you need.
The latest Xcode (Get it from the Mac App Store) should give you everything you need!
Go on iOS dev center, and download last XCode 4.6.1 (which includes the latest SDK 6.1) directly.

XCode not recognizing my iphone

XCode was recognizing my device just a day ago but now its not. I am getting the error in the organizer below. I know there are many other questions like this but non of them are answering my question. I am unable to see "Use for Development" button, neither adding to portal is fixing the issue. I have upgraded the device when 5.1 came and was able to use the device for testing but dont know what happend yesterday and it stop recognizing the device.
The version of iOS on “Adil Muhammad’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 Adil Muhammad’s iPhone
5.1 (9B176)
Xcode Supported iOS Versions
Latest
5.0 (9A334)
4.3
4.2
you updated your phone, so you need the latest xcode installed to now develop apps on your dev phone
As your Device ios version is higher than what your xcode support.
Upgrade you xcode with the latest one (xcode 4.3).
This is the only Resason
Regards,
neil.

iOS 4.3.1 on the phone - does it work with XCode 3.x ? or only 4.0.1?

I upgraded my iPhone to the latest OS (4.3.1) yesterday, and noticed there is no corresponding XCode 3.x release, only a 4.x release (4.0.1).
Since upgrading I am getting warnings when I try to install apps on the device using my development certificates (Application failed codesign verification).
Not sure if the OS upgrade on the Phone and the error message are related, so I'm just asking the question if anyone else had this happening?
And are we supposed to use XCode 4.0.1 when we develop for the 4.3.1 iOS release or can we use a 3.x version as well?
The Xcode version number isn't important, but the SDK version number is. You can get the latest SDK with either Xcode 3.2.6 or Xcode 4.0.1 at the time that I'm writing this.
You can still download the XCode 3.2.6, it goes with the SDK 4.3, and it is free to download.
You can try with XCode 4 as well, but you have to either to have an iPhone or Mac Developer account (99$/year) or you need to buy it from the AppStore
It still works, however of you first attach your iPhone to Xcode it will ask you to download the debugging symbols off the phone. Answer Yes to this question and you are ready to go.
However there is one more thing: usually Apple makes restrictions about the SDK you should use when submitting apps to the store. So if you want to submit an app it could be that you have to use the most recent SDK.
Deploying an application directly from XCode 3.2.6 on a device where iOS 4.3.1 has just been installed won't work.
First, you need to open XCode's Organizer window and ask to collect information from the device. Then it will work fine.

Xcode SDK IOS 4.2 installation and missing iOS 4.1 in build settings

i have download Xcode SDK 4.2(xcode_3.2.5_and_ios_sdk_4.2_final.dmg) from Apple developer site and installed successfully . when open my old xcode project it shows baseSDk missing ,when i try to change project setting ,i have found and set base SDk as 4.2 it works fine
my problem is ,in Base SDk list it shows
(iOS 2.1, iOS 2.2, iOS 2.2.1, iOS 3.0, iOS 3.1, iOS 3.1.2, iOS 3.1.3, iOS 4.2)
There is no iOS 4.0 and iOS 4.1 (which i have used before 4.2). anything wrong in my installation???? Plz help me to correct my mistake
Thanks in advance
This does happen. I generally just use the latest SDK as base SDK. You support the latest version and forget abt the older versions[apple style]. This way your app can take advantage of all the latest functionality.
One thing you must remember is that the Base SDK is different from the deployment target.
base SDK is the latest SDK your project will use and support.
deployment target is found in target->getInfo; this is the minimum version that your app will support.
4.2 is a free upgrade and most of them would upgrade, so i'd set the deployment target as 4.0 or at the least 3.0. who uses 2.x anymore?
if you really want 4.0 and 4.1 as well, you have to install the old 4.1 GM as a parallel Xcode IDE or follow this link and get support for all the versions in a single XCode IDE.
http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/
I'd suggest building using 4.2 but follow the link and install all the simulator SDKs for old versions so that you can test the app on those versions of the simulator.
Nothing went wrong here. That's how Apple forces the developers to always use the latest SDK to develop.

How to get older SDK and do I need to?

I have OS 10.6 on my mac. I started with iphone SDK for snow lepard which builds for SDK 3.0 to 3.1.2. I'm ready to submit my app to the store. I'd like older iphones to use it as well. I can't find Apple's link for SDK 2.2. Only the link for the 3.1 sdk.
Do I need to release the app built with 2.2 ? If so where can I find it?
Can iphone users update the OS on their phones?
Thanks,
Actually, on my mac, (10.6.2) iphone sdk will build 'down' to 2.2.
And yes, iPhone users can upgrade (and downgrade) their OS. -- but you knew that since you've got an iPhone for testing right?
:)
In the XCode, you can either specify which SDK to use to build your application or which OS version to use to test your application. See this guide for more details.