Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SDK and iOS Deployment Target.

Tags:

ios

iphone

ios3.0

I build my project with the latest SDK (4.1) and set "iOS Deployment Target" (3.0). Can I run my project on a real iPhone 3.0 if I use some methods of 4.0 sdk?

like image 202
Voloda2 Avatar asked Jan 15 '11 14:01

Voloda2


People also ask

What should be the deployment target iOS?

In short, every application that runs on one of Apple's platforms has a deployment target. A deployment target is nothing more than the minimum version of the operating system the application can run on. Fire up Xcode and create a new project by choosing the App template from the iOS > Application section.

Which SDK is used for iOS?

The central component of the iOS SDK is Xcode, Apple's interactive development environment (IDE). Xcode facilitates building apps for OS X, iOS and WatchOS. Xcode includes the interface, the LLVM compiler, instruments and iOS simulator tools that make development and testing possible without an Apple device.

What is iOS target?

A target specifies a product to build, such as an app, framework, app extension, or unit test. A project can contain multiple targets, usually representing related parts of a single product. For example, a project might contain separate targets for an app, a private framework, an app extension, and a suite of tests.

What does deployment target mean?

Related Definitions deployment target date means the date by which the deployment of the ATM functionality in question is to be completed and fully used operationally.


1 Answers

You can only run your project on OS 3 devices if you conditionally code around the OS 4 methods you want to use. If you called a method that only existed in iOS 4 on an iOS 3 device your app would crash. You can do this through both checking iOS version numbers and using the [... respondsToSelector:] method.

like image 163
lxt Avatar answered Oct 26 '22 16:10

lxt