Xcode 4.2 Beta: Can I build for iOS 4.x? - ios

In my iOS project using Xcode 4.2, all targets are showing Latest iOS (iOS 5.0) in the build settings, and I have no other available options. Can I deploy to a device running iOS 4.x using Xcode 4.2 Beta, and if so how?
Note: I'm only interested in ARC at this time, otherwise I'd be using 4.02 (Snow Leopard).

Are you looking at the "Base SDK" setting or the "iOS Deployment Target". You want to build against the "Latest" SDK, but set the deployment target to the minimum supported iOS version.

Related

cannot download the app on ios version 9.2

i launch my app but when i start it download on device of ios 9.2 an error message shown "The app required ios version 9.3" what is the reason. i setup deployment target to 9.3 in xcode and my test device where also 9.3
Option 1.-> setup deployment target to 9.2 or below in xcode
option 2-> update your device with 9.3 version
If the deployment target of your app is 9.3, you cannot install this app to earlier versions. Change deployment target to 9.0 or earlier to support devices with earlier versions of iOS.
https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringYourApp/ConfiguringYourApp.html
The deployment target setting specifies the lowest operating system version that your app can run on.
then if you set 9.3, you app cannot run in ios version lower than 9.3
If you want it to run on IOS 9.2, you have to set the deployment target to 9.2. And it will work.
As Apple says:
The deployment target setting specifies the lowest operating system version that your app can run on. For example, the lowest available setting for iPad apps is iOS 4.3.
Change your project deployment target to 9.0 or other but you are set deployment target version after and equal os version to test in device before version doesn't test.

App with deployment target of 4.0 won't install on "too old" 4.0.1 device

I have an app where the deployment target is set at iOS 4.0, yet trying to run it on a 4.0.1 device results in this:
"The version of iOS on XXX is too old for use with this version of the iOS SKD"
As the installed OS version of 4.0.1 is > than the deployment target why does it say the OS is too old.
(The app will sucesfully install/run on other devices that has 4.3, 5.n, 6.n installed)
In Xcode 4.5 (with support for the iPhone 5 / armv7s), you can only support iOS 4.3 as the lowest possible deployment target.

ios deployment target vs Base SDK

I have my Base SDK set to 5.1 and the Deployment Target set to 3.0, when I try to install the app it still says it requires a newer software version. The iPhone I'm testing with has 3.0. Should I try to back down the SDK version?

How to include iOS SDK lower than 4.3 in Xcode 4.2

I just upgrade my Xcode to 4.2 because I upgraded my MacOS to Lion.
In this version of Xcode. only includes SDK 4.3, I can set the Deploy Target to 4.0 or other lower version, but different from old Xcode, I can't launched Simulators for lower SDKs.
I also tried download & install lower SDKs from old Xcode package, but seems it doesn't works.
So, in this situation, how I can publish app to support lower SDK devices?
THX~
Try opening XCode preferences, go to Downloads, and install the various debugging support options that are present.

iOS4 SDK target to iOS3 device

In previous version of iOS SDK, if I install a newer version of SDK, I can't target a previous version. For example, when I installed SDK 3, i can't target iOS 2 or before.
Now I want to install a new version (xcode_4.0.2_and_ios_sdk_4.3.dmg) to develop to iOS 3.2 and iOS 4.
If I install this new version, can I target to previous iOS 3?
You can specify deployment target in your project's properties. For example if you choose iOS 3.0 as deployment target the app will run on iOS 3 even if it is built with SDK 4.0 (of course it's true only if you don't use 4.0 specific features).
No. Install at Different location so that, if you want to develop applications supporting lower version you can use that older version SDK. However you can change Base SDK version of older version developed apps and can run applications on Newer version Xcode SDK.

Resources