How to add a "Base SDK" in XCode 4? - xcode

I currently use XCode 4.0 with Base SDK 4.3.
I would like to compile my app with an older SDK, for example 4.2, but I don't have this possibility as I have no other choice than SDK 4.3.
Do you know how to add older SDKs than the default Base SDK 4.3 proposed ?
Thanks a lot !

You cannot do that. Xcode versions are released along with iOS SDK's. They are linked together i.e particular Xcode version can compile the code on the specific iOS SDK only (which it come with by default).
To compile your code in lower version of SDK, you need to download the lower version of Xcode

by changing the iosdeployment target you can run this.
for this,
go to the targets in the xcode and get the info .There you can find the second tab build.in that you have search field.type the ios deployment target.change that to 4.2.So that it can run on 4.2 also

In build settings, under Architechtures, you have something called as Base SDK .. you can change you base SDK there and set it to the latest ios version you have installed.

Related

xcode 6.3 does not show all options for base sdks

I am new to OS X development. Using Xcode 6.3 on yosemite. Why the base sdks option in build settings only showing 10.10 and 10.9
Is it not possible to add other sdks under this option ? if it is then how can I do it ?
I understand that to support old platforms I need to set target sdk to lowest supported platform.
What I am trying to do here is to compile my code against an older sdk to ensure that my project is not calling any functions not available in old sdk.
Thanks,
Ahmed

How can I add SDK 6.1 on livecode 5.5.3?

I need to add SDK 6.1 with my current version on Livecode 5.5.3. I've tried adding it in preferences-> Mobile Support but it will just say "the chosen folder is not a valid IOS SDK". Are these version of livecode and xcode compatible? I can add xcode 4.5.2 but can't add xcode 4.6.2.
I had no problems adding Xcode 4.6.2 to LiveCode 5.5.4 so maybe you need to upgrade your LiveCode.
Note: if you want to submit to the app store you need to upgrade to 5.5.5

How to develop iOS 3.1.3 app in Lion?

I want to develop application for iOS 3.1.3 in Lion OS (10.7.3). Can I develop it? What Xcode I must use to develop iOS 3.1.3 app? Now I use Xcode 4.2.1 and I can create iOS 3.1.3 project cause iOS 5.0 have a different type with 3.1.3.
Thanks before. Regards. :)
You can download additional SDKS from the XCode->Preferences->Downloads. Install older iOS SDK's and simulators, as well as debugging tools from here. After downloading the iOS 3.x and 4.x SDKS, you can build apps that will run on older iOS versions. You then need to set the build versions in the project settings to whatever SDK you want to build. However, you must know that while developing for older versions is a great practice, it may end up being a lot of extra work because different features are not supported (I.e. ARC memory management). Lastly, building for iOS 3.x may be less-useful at this point, because iOS 3 is going to be deprecated in the upcoming months. Just a few things to consider.
To Change your IOS SDK setting . Simply create your new project and click on your project tab(LEFT PANE).
After that select PROJECT in next LEFT PANE .
After this new tabbar appeared there is 2 tabs INFO/BUILD SETTING .
Select BUILD SETTING . There you find ARCHITECTURE>BASE SDK.
In Base SDK menu you can select your required SDk to develop your application.
Hope this will help you.

Mandatory to use XCode SDK 4?

Well you know they just released this new XCode 4 version thing...... I am still using version 3.x.x.
Is it mandatory to use XCode 4 for my iPhone apps to be approved?
Not at all. You can still build, sign and submit iOS Apps using XCode 3.
No, but it is recommended. You can use XCode 4 with base SDK 4.3 and target an older iOS version.
You can download iOS SDK 4.3 with either Xcode 4 or Xcode 3.2.6 from Apple's iOS developer page. Remember that the Xcode version number is not the SDK version number.
You should always use the latest SDK, even if you're targeting an older iOS version. As I understand it, Apple will sometimes fix bugs in older OS versions. In order to get those fixes, though, you need to use the latest SDK.
unless you don't want to try Git integration you should be fine :) I'm struck with xcode 3.2.5 and shortcuts. And I hate iTunes like toolbar for no reason :(

Base SDK missing after a fresh install of XCode 3.2.5 which includes iOS SDK 4.2

I'm new to iPhone development. I just did a fresh install of XCode 3.2.5 with iOS SDK 4.2. No previous XCode or iOS versions have been installed before. However trying to compile some sample project from some books gives "Base SDK Missing". :( What to do? How can I use XCode 3.2.5 for older iPhones like 3GS if it only supports 4.2?
When I go to "Project/Edit Project Settings/Architecture/Base SDK/iOS SDK's" only iOS 4.2 is available to be selected.
Do I need to install older XCode first and then upgrade?
In the build settings, you can support older phones by setting "iOS Deployment Target" to something like 3.0. http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/cross_development/Configuring/configuring.html has more details on the difference between this and the Base SDK setting.
Set Project/Edit Project Settings/Architecture/Base SDK to the Latest OS version, then quit and restart Xcode. You can later set the Deployment target to a lower OS version.
I had the same problem for most of the afternoon. I did everything suggested and nothing worked UNTIL I cleaned and cleaned and saved and rebooted and re-built. Unfortunately that doesn't tell me what actually worked, but it does give everyone "just one more thing" to try.

Resources