Confused with xcode version

Discussion in 'iOS Programming' started by rich1812, Nov 16, 2018.

  1. rich1812, Nov 16, 2018
    Last edited: Nov 18, 2018

    rich1812 macrumors regular

    Joined:
    Oct 4, 2015
    Location:
    earth
    #1
    Hello, all these xcode versions, swift versions keep my head spins. All I want is to learn some simple iOS programming, Which version of xcode with suit the best to program n old ipad mini, running the last iOS 9.3.5 it support, I can access its hardware such as camera... Thanks.
     
  2. szymczyk macrumors regular

    Joined:
    Mar 5, 2006
    #2
    Use the latest version of Xcode that will run on your Mac. The current version of Xcode is 10.1, which gives you the iOS 12 SDK. By using the iOS 12 SDK your app can take advantage of any features Apple added in iOS 12. 99.99% of the time you should use the latest iOS SDK.

    To support iOS 9 set the deployment target of your project to iOS 9. You can change the deployment target by selecting your project from the left side of the project window.

    SetiOSDeploymentTarget.png

    The deployment target is the earliest version of iOS that can run the app. You have to be careful to use only code and frameworks that are available on iOS 9.

    Summary: use the latest available iOS SDK and change the deployment target to support earlier iOS versions.
     
  3. rich1812, Nov 18, 2018
    Last edited: Nov 18, 2018

    rich1812 thread starter macrumors regular

    Joined:
    Oct 4, 2015
    Location:
    earth
    #3
    Thanks for the reply For the foreseeable future, I do not intend to upgrade from what I already have, which is the old iPad mini running ios 9.3.5. and I do not intend to develop any ios app to publish commercially, so I limit to target only ios 9.3.Can I develop ios 9. app on Xcode 10.1? Which swift version does it support?
    When I upgrade to Majobe, It comes with Xcode 10.1, I set the target to ios 9.3, I got a lot of errors saying that certain functions only available on iso 10.1 or higher, but I can't find out what is the similar function to replace them.
     
  4. szymczyk macrumors regular

    Joined:
    Mar 5, 2006
    #4
    Yes, you can develop for iOS 9 with Xcode 10. Set the deployment target to iOS 9.

    All Swift versions support iOS 9 and later. Unless you're using third-party libraries that were built with an older version of Swift, use the latest version of Swift, which is Swift 4.2 on Xcode 10.1.

    There is no easy way to determine what functions you can use on iOS 9.
     
  5. rich1812 thread starter macrumors regular

    Joined:
    Oct 4, 2015
    Location:
    earth
    #5
    is Xcode 10.1 suitable/capable to write apps for ios 9.3.5 then?
     
  6. Crichton333 macrumors 6502

    Crichton333

    Joined:
    May 4, 2014
    #7
    If you just want to "learn some simple iOS" why dont you run the simulator in Xcode and test your app ?

    If you need the camera just set the target to iOS9 and run on iPad.
     

Share This Page