Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,504
792
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?
 

mjohnson1212

macrumors member
Nov 15, 2007
92
11
Use the "Legacy Swift Language Version" build setting: (SWIFT_VERSION = 2.3) to get Swift 2.3 instead of Swift 3.
 

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,504
792
Use the "Legacy Swift Language Version" build setting: (SWIFT_VERSION = 2.3) to get Swift 2.3 instead of Swift 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?
 

Attachments

  • Screen Shot 2016-06-17 at 14.54.15.png
    Screen Shot 2016-06-17 at 14.54.15.png
    36.8 KB · Views: 92

firewood

macrumors G3
Jul 29, 2003
8,107
1,345
Silicon Valley
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.
 

patent10021

macrumors 68040
Original poster
Apr 23, 2004
3,504
792
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?
 

firewood

macrumors G3
Jul 29, 2003
8,107
1,345
Silicon Valley
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.