how can I change ios sdk? - ios

I want to change my iOS SDK. I have ios 5 and xcode 4.2 but I have to decrease it to iOS 4.2 SDK because of my application. In developer.apple.com the xcode 4.1 with iOS 5 so it is not available. How can I find xcode 4.1 with ios sdk 4.2 or how can I setup the ios sdk 4.2 without download xcode again. If it is not possible can you give me a linq for download xcode 4.1 with ios sdk 4.2

The base SDK should be the currently available one - it's the version of the SDK that you have installed to compile against.
However, further down the settings list you'll see that you can set the "Deployment Target" to be for lower versions iOS. That's the one that specifies the lower version of the OS that you app will run on.

Latest SDK included all required features from previous SDK versions. You shouldn't worry about it. If you want to support previous versions of iOS just set iOS Deployment Target to iOS 4.2 (or another would you like) in project settings at Build Settings tab.

Related

What is the highest version of Xcode that supports iOS 6.0 as the deployment target?

I am developing an iOS app for iOS 6.0 and higher. Now, after updating Xcode from Mac App Store, I am told that "An iOS Deployment Target earlier than 8.0 is not supported by this version of Xcode.". So, it seems that I need to use another version of Xcode to develop this app.
I can download other versions of Xcode from https://developer.apple.com/download/more/. What is the highest version of Xcode that supports iOS 6.0 as the deployment target?(I just mean the deployment target, not the capability of installing iOS 6.0 simulator.) I don't want to download many Xcode versions to find that.
You can use latest Xcode for this do not select deployment target from dropdown, just manually input "6.0" in the "iOS Deployment Target" text box.
For more details you can go through here.
I have also upload one of my app that use iOS 7.0 from latest Xcode.
iOS 6 is supported in Xcode 7.x .
My suggestion is that,you may need to provide support for just 2 of previous versions of iOS 10, ie. iOS 8 and 9. If you take a look at the usage graph, it is evident that only 6% are using versions earlier than 9. That too, will have major contributions from iOS 8 and 7.

How can I compile against iOS SDK 3.1.2 on Yosemite (Xcode 6)?

I need to compile an Xcode (iOS) project that targets iOS SDK 3.1.2, but I'm currently running Yosemite and Xcode 6.
What do I need to do or download to compile/target this much older iOS version?
You can't do that with Xcode 6. It's just not possible!
You may want to set the deployment target to iOS 5.1.1 though. You cannot go below that without losing the ability to submit the app to the app store.
With an older version of Xcode, it should be possible to compile for iOS 3.1.2, but you'll lose the ability to submit the binary to the app store. In any case, you should always use the latest SDK. E.g. you may use the iOS 7 SDK and set the iOS deployment target to iOS 5.1.1

Changing the base SDK in Xcode

I am using Xcode 4.5. I developing an iOS app, I am targeting iOS 5.1.
I want to change the Base SDK to iOS 5.1, but it only displays iOS 6.
Where have all the others go?
You should always use the latest SDK. If you want to target older iOS versions, change the Deployment Target setting to the minimum iOS version you want to support.

How to build and test Xcode iOS SDK 4.3 project in iPad 2 iOS 5?

I'm wondering if I can build and test my current project which is iOS SDK 4.3 based, to iPad 2 (iOS 5)? In Organizer - Devices it says:
The version of iOS on “my iPad” 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;
Can I build my project without updating to iOS SDK 5?
No, this isnt possible, you must upgrade to the lastest Xcode.
It is possible to have two versions of Xcode installed if you still want to hang onto the old one.
What is the reluctance to upgrade? Are you having compiling issues?

How to support different iOS SDKs on Xcode 4.2?

After installing Xcode 4.2 there is only iOS 5.0 SDK in Xcode.
Also I should support iPhone 3G with iOS 4.2.1.
How support two or more SDKs for one App with one Xcode?
I tried install Xcode 3 with iOS SDK 4.3 but Xcode crashes when starting.
Set the deployment target of the App to iOS 4.2.1, this will allow all iOS devices running 4.2.1 or upwards to run your App, however, you won't get any compiler warnings if you use stuff from eg. 5.0, so double check your code and add branches if needed.
Another thing is that since Xcode 4.2, the compiler only generates armv7 code, but since you also want support for the iPhone 3G, you have to manually tell it to also generate armv6 code by selecting your target, switching to the Build Settings Tab and there adding armv6 to the Architectures list.
Latest SDK included all required features from previous SDK versions. You shouldn't worry about it. If you want to support iPhone 3G just set iOS Deployment Target to iOS 4.2 (or another would you like) in project settings at Build Settings tab.
Don't remember to test your application on that iOS version.

Resources