Clarification with working on Xcode 8 projects

Discussion in 'iOS Programming' started by patent10021, Jun 16, 2016.

  1. patent10021 macrumors 68020

    patent10021

    Joined:
    Apr 23, 2004
    #1
    So they said Xcode 8 comes with Swift 3 and Swift 2.3.

    I want to start developing in Swift 3 now. App store will reject Swift 3 binary right?

    What's the best way to manage these two different versions of apps?

    When they say Xcode 8 comes with two versions how do we switch? Are there two separate project templates?
     
  2. mjohnson1212 macrumors member

    Joined:
    Nov 15, 2007
    #2
    Use the "Legacy Swift Language Version" build setting: (SWIFT_VERSION = 2.3) to get Swift 2.3 instead of Swift 3.
     
  3. patent10021 thread starter macrumors 68020

    patent10021

    Joined:
    Apr 23, 2004
    #3
    That doesn't exist exactly. It's either Yes or No.

    Anyway if I select yes I'm assuming all apps will be built with 2.3 instead of 3.0?
     

    Attached Files:

  4. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #4
    Depends on when you want to submit the app. If you can wait till fall (maybe around September to November), just develop and test using Swift 3, and wait till Apple allows the use of Xcode 8 and Swift 3 for App store submissions. If you want to submit an app earlier this summer, use Swift 2.x, and migrate the source code when appropriate.
     
  5. patent10021 thread starter macrumors 68020

    patent10021

    Joined:
    Apr 23, 2004
    #5
    Well with Xcode 8 we can use legacy Swift 2.3. We cannot submit an app that was built in Xcode 8 if it was using 2.3 code? You sure?
     
  6. firewood macrumors 604

    Joined:
    Jul 29, 2003
    Location:
    Silicon Valley
    #6
    Xcode is currently in beta. Apple DTS claims they do not support App store submissions from tools that are still beta (other than for TestFlight) unless otherwise specified. But, usually, they send out an email to enrolled developers a few days before the beta tools are officially Released allowing app submissions. I haven't seen any such email.
     

Share This Page