1. Project Structure in Xcode 4

    Project Settings might be intimidating at first, but we should not fear nothing but fear itself, and besides, there are just a few things we need to take care of.

    First, we need to set the Base SDK, from the target Build Settings, inside the Architecture section, we choose the appropriate iOS version. Here is where we tell Xcode which version needs to use to build the app. This version should be always the latest version of the SDK.

    The version of the iOS that is used to build the app, might not be the same of the version the app could run on. In particular, you can build the application with iOS 4.1, but the app can run flawlessly in iOS 4 or 3.2 for the iPad, or even 3.0. This is called the deployment version, and should be set to the earlier version of the OS that can support the app. This setting is going to determine whether the symbols that the app uses are strongly or weakly linked. This is helpful to safely use new features of modern iOS versions while still being able to support older versions.

    Another important setting to take care o is the Targeted Device Family. This determines which type of devices your app can run on. The available options are:

    • iPhone
    • iPad
    • iPhone/iPad

    Xcode 4 Settings