Does Xcode 4.0.2 supports deployment target 3.0 - iphone

I am going to upgrade Xcode 3.2.5 to Xcode 4.0.2 so do this new version supports deployment target 3.0

Yes, you can still set the deployment target to iOS 3.0 with Xcode 4.0.2 but you have to use the iOS 4.3 SDK as the base SDK. It is the only supported option for the base SDK.

If going from the accepted answer here:
How can I build in XCode 4, for an iOS 3.1 deployment target, using libSystem.B?
as well as the wikipedia page:
Xcode 4.0 drops support for many older
systems, including all PowerPC
development as well as SDKs for 10.4
and 10.5, and all iOS SDKs older than
4.3. The deployment target can still be set to produce binaries for those
older platforms, however for Mac OS X
applications only x86 and x86_64
binaries can be produced.
yes, you can target iOS 3.0 using XCode 4 (but I have no idea how you do that)
Edit: I found this on a forum, it should let you target iOS 3.0
In your X-Code project, select Edit project settings inside the "Project"
sub-menu.
Once there, click the Build tab.
Make sure you select All configurations in the "Configuration"
option.
In the Base SDK option select iPhone Device 4.0
Search for the iPhone OS Desployment Target and select iPhone OS 3.0
http://www.iphonedevsdk.com/forum/iphone-sdk-development/53167-compile-ios-3-0-using-xcode-4-a.html#post221406

Related

Can I use Xcode 3.1 to develop app for iOS version 4.0, 4.3 and 5

I want to develop an iphone app, I only have OSX 10.5 so I can only install xcode 3.1, can I developer App for iOS version 4.0, 4.3, and 5 respectively? Or I must upgrade to OSX 10.7 Lion and install xcode 4.2?
More specifically, if I use xcode 3.1 and develop an app, will it runs on iphone 4 and 4S?
As far as I know you will not be able to develop for those iOS versions with XCode 3.1, looks like you will need to upgrade unfortunately.
You'll need to upgrade, at least to Snow Leopard (10.6) to be able to develop for iOS 5, as 10.5 is not longer supported
edit:
short answer yes, it will most likely be able to run, but you missed out on so many features added in iOS 4++, also, it's likely you won't be able to test your app on iPhone 4/4S, not sure about iPhone 4, but 4S surely won't get recognized by your XCode
if you make an app for iOS 4.0 it should work with iOS 4.3 and iOS5. But for Xcode 4.2 you don't need Lion, Snow Leopard is enough(I've heard that Lion isn't that good compared to Snow Leopard).
You cannot use Xcode 3.1 to develop apps the use SDK APIs or features new to iOS 4.3 or 5.x, or to debug apps running on devices with those later OS versions.
You can use Xcode 3.1 to develop apps that will run on devices with iOS 4.3 or 5.x by using Ad Hoc deployment and installing the apps via iTunes.
You can develop for newer ios on older XCodes. And, its a matter of managing PATHS nd VERSIONS
STEP 1.
What is known as XCode is more accurately a bundle of a IDE with a SDK. Nevertheless, the two are separate. I have 3.2 and 4.0 xcodes on the same machine. no hitch at all. I used the older 3.2 IDE until the 4.0 IDE became a bit more familiar.
One way is to organize your directory structure around the following schema.
/Developer_3.x.x
/Developer_4.x.x
Another method is to use only one /Developer and copy the SDK and platforms from one into another.
/Developer/SDKs
/Developer/Platforms
*The reason that is easy: those are the expected search PATHS
The cleaner and slightly more difficult route is setting the Project build settings under
Project | Build | Architecture
The two settings are the two top-most ones.
"Additional SDKs" sets the ADDITIONAL_SDK variable.
"Base SDK" sets the SDKROOT variable.
See "Cross-develop using target sdk"
And "Cross-Development Programming Guide"
As pointed out, a caveat is optimizing, mem-leaking and so forth.
STEP 2. (Pain in the *ss)
Then, you will have to start peppering your code with precompiler if statements.
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
if ( [[[ UIDevice currentDevice] systemVersiuon] floatValue] > = 4.0 ) {
...something available in 4.0
}
#endif
This precompiler braches should be in there to support multiple devices, no matter the XCode case.

Why won't Xcode 4.2 support a second-generation iPod Touch, running iOS 4.2.1

I recently upgraded to Xcode 4.2, for SDK 5.0 support, but since I've done so, one of my testers, who has an iPod Touch 2nd generation running iOS 4.2.1, can't use my ad-hocs
My target is setup for Base SDK: 5.0 (Latest Version) and Deployment Target 3.2, so that should allow it. I'm also pretty sure on the tester's iOS version, as it's registered with testflightapp.
The error he's seeing is approximately this: "your device is running 4.2.1 which is less than the required version (4.3) for this build"
I notice also that I Only see versions 4.3 and 5.0 in my schemes nowadays. Is there something that should be adjusted there?
Go to Xcode Preferences -> Downloads and install 4.0-4.1 support. You should be able to support < 4.3 then.

Is it possible to compile an iPhone App for IOS 4.0 using Xcode 4

Does anyone know how to compile an iPhone app targeting iOS 4.0 using Xcode 4?
It seems that it is only possible to select iOS 4.2 as target.
Thanks in advance
Peter
There's a "Deployment Target" setting and a "Base SDK" setting. You can set the deployment target by clicking on the project name at the top of the tree, then bring up the "Summary" page. Deployment Target is the 4th item, and can be set to 4.0.
"Base SDK" is on the "Build Settings" page and is usually the latest SDK you have installed, but can be set to older SDKs if you go to the trouble to keep them around. Normally you shouldn't need to though, because apps built with newer SDKs should run on older iOS versions as long as you restrict your coding to the older API.
So an app built with the 4.2 SDK should run fine on iOS 4.0 if you set the deployment target to 4.0 or earlier and don't use any methods introduced after 4.0.
See also:
How to target previous version of iOS in XCode4?
What's the real difference between Base SDK and Deployment Target or Deployment OS Version?
How to target 4.2 version with XCode 4
iOS deployment target set to iOS 4.2. Will the app run on devices running earlier versions of iOS?

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.

Upgrading iOS SDK

I've XCode 3.2.3 with iOS SDK 4 installed in my iMac. I bought an iPhone 4 with OS version 4.0.2 and I would like to use that device for development. However the Organizer shows the message below when the device is connected.
The version of iPhone OS on “iPhone 4G” does not match any of the versions of iPhone OS supported for development with this installation of the iPhone SDK. Please restore the device to a version of the OS listed below, or update to the latest version of the iPhone SDK.
Currently my XCode supports Base SDK from 3.0 to 4.0.1.
So if I download the latest XCode 3.2.4 with iOS SDk 4.1, will I still have Base SDK support from 3.0 ?
Cheers
Jugs
No, XCode 3.2.4 does not come with SDK 3.0, it comes with SDK 3.2 and 4.1. But you don't need the 3.0 SDK to write apps that will run on 3.0.
There are two versions that are important to you as an iOS developer, and you need to understand them: first, there's SDK version that you link to, this is the Base SDK. It should normally be set to the newest SDK available.
And then, there's the Deployment Target. That is the earliest version your app needs to run on. This is the one you are actually caring about, this one ensures that your app will still run on earlier iOS devices.
To set that, go to "Project -> Edit Active Target". In the dialog, select the "Build" tab, make sure "Show" is set to "All Settings" and the type "deploy" in the search field. Scroll down to the "Deployment" section, the last entry should be "iOS Deployment Target". You need to set this to "iOS 3.0" or whatever suits you. You should now get warnings if you use methods or classes that are not available on 3.0.