I was wondering if there is a place where i could get the earlier version (archives etc) for iphone SDK.There are certain times when one needs to play with the 3.x SDK.Can anyone please guide me for this.Thanks
download latest sdk. set deploy target to 3.0 and don't use new features that added after 3.0 so it should runs well on your 3.0 devices.
It doesn't look like Apple provides the old tools. I archive all of the developer tools as they are released.
Related
I am using an older version of Xcode - 3.1.3. and want to install the iPhone SDK.
Can anyone point me to which version of the SDK I need to download? I tried to search for the appropriate information but could not find anything that matched.
Thanks
you download the xcode 4 from apple developer site. Its the best to develop iphone apps.
Without the ability to update Xcode to a more current version, you will be unable to develop on a lot of the latest SDKs. iOS 5 for example was never made compatible with Xcode 3 versions. So until you are able to upgrade to Xcode 4, you'll be stuck with the iOS 4 SDKs.
Good Luck!
Should I be developing my app for 4.2?
Always use the latest SDK. Apple won't approve any apps built against 3.x anymore.
Edit:
There's a difference between the base SDK and the iOS you plan to support. You need to use the latest SDK as I stated before, however you may still create an app that runs on older versions of iOS by not using classes and methods that have been introduced in newer releases and setting the target OS appropriately.
Unless you have the need to support older iOS devices with older iOS versions, you should develop using 4.2 as it has a lot of features that are missing in 3.x. Most importantly: 3.x doesn't support multitasking.
Also, it's important to understand the relationship between Base SDK version and deployment target. In a nutshell: you can (and should) compile against the latest SDK version but if done correctly, you can still run the app on older iOS versions.
The base SDK should always be the latest version available (4.2 as of right now). Then you can use the deployment target to specify the minimum OS that your application will support, so a good rule of the thumb would be to use 3.0 for that.
Personally, I use some of new iOS 4.0 stuff (ie. GCD) a lot in my applications. I've heard that 90% of ios users are on 4.x. That should be a good middle ground.
I just downloaded XCode 3.2.3 with iphone sdk 4, but I need to compile my app with 3.1.3, but there is no option in the project settings for that (just 4.0 or 3.2). Is there any other possibility for me besides downgrading to XCode 3.2.2??
In the Deployment section of the Build settings, there is an option to set iPhone OS Deployment Target. You can choose 3.1.3 from the list of available OS versions.
Yes, you may choose any iPhone OS
Deployment target from the list. But
make sure that you are not using any
iPhone SDK 4.0 specific
methods/properties.
That is the catch, isn't it... is there an easy way to check that we're not doing any iOS4 SDK calls if we cant trap it during a compile?
I found this (see the bottom of the page):
http://0xced.blogspot.com/2010/07/using-sdk-313-with-iphone-sdk-4.html
Unfortunately, it requires the following on the first step:
"Locate iPhoneOS3.1.3.sdk and iPhoneSimulator3.1.3.sdk from an iPhone SDK 3 installation"
And, of course I blew away my iPhone SDK 3 installation when I installed the iOS 4 SDK. So I'm kinda stuck.
Is there another alternative?
Thanks!
Yes, you may choose any iPhone OS Deployment target from the list. But make sure that you are not using any iPhone SDK 4.0 specific methods/properties.
I strongly recommend you read this. SDKs other than 3.2 and 4.0 are no longer available for App Store submission.
Based on your past experience, will two iPhone SDKs co-exist on a single mac?
For example, one that is in beta and one that is released.
I am planning to just copy an existing SDK to a different folder before installing a new one - would appreciate any prior warnings!
When you install 3.2 beta, the others (e.g. 3.1.2) just stick around and are available as target SDKs.
The best way to do that is to have side by side installation. And it is Apple's recommendation to do so as if you plan to release an application on the AppStore it should be built against the official version of the SDK.
You should install the released version (official one) in a directory say 'developer'
and the beta one in a folder called for example 'developerbeta'
that way, you will have both versions of Xcode and all the SDKs.
Hope this helps.
Doing not Working's explanation is correct.
The only place you're going to see the official Apple recommendation is by getting a developers account (the free one will work I believe), signing the NDA and then (1) reading the installer readme or (2) checking out the iPhone 3.2 Apple Dev forum.
The SDKs have always been separate from the developer apps like Xcode. You can always compile any project in any version of Xcode with an earlier SDK. That has always been true. However, Apple will not accept any app built with the 3.2 dev tools, i.e. Xcode, Interface Builder, Instruments etc.
I would suggest running the 3.2 dev tools under a different users to prevent any preference file mixups.
You do not need to worry about doing this for keeping iPhone OS3.2 when installing iOS4 - apple has already included 3.2 in the iOS4 installation. But this is a good tutorial if you want to keep iPhone OS 3.0 or any pre 3.2 version for testing.
http://adeem.me/blog/2010/06/16/how-to-setupinstall-2-iphone-sdks-on-one-mac/
Just got the latest beta for iPhone SDK up. This is the update for the upcoming 3.0 release of the iPhone SDK. Unfortunately, I'm not getting a bunch of errors for targetting the 3.0 platform. This is nice to know for me to mark future work, but I need to get some other stuff done first. Unfortunately, the "target" field no longer shows me the 2.2.1 SDK, and defaults to 3.0, resulting in a myriad of errors that I'd like to fix later.
What actions should I follow to fix this? I've already tried changing the default base SDK in the properties for the project to no avail. Does installing 3.0 basically remove the 2.2.1 SDK?
Thanks in advance.
Figured it out. The error I was getting occurs for a beta build so this probably shouldn't be a persistent solution, but if anyone else is having trouble with trying to use the latest beta of XCode+iPhone0S3 installation, you will find that you can only target the 3.0 OS after you select it in the Overview dropdown. Even if you were targetting a different active SDK previously, they will all be gone as soon as you select the 3.0 target.
The way to fix this problem is to just delete all the user-specific project files and to reopen the project. Before that, make sure the base SDK is 2.2.1, etc.
This is a lot easier than downloading the 2GB stable XCode just to target the previous SDK.
Hope this helps someone.