Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I keep using Swift 2.3, instead of 3.0, Xcode updated and can't build anymore

I am developing an app with 20+ framework dependencies and not all of them are on 3.0 yet. So I want to keep using Swift 2.3. However, after updating my Xcode to 8.0, I can no longer build my app. It fails with the following error:

“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift. Use the [Edit > Convert > To Current Swift Syntax…] menu to choose a Swift version or use the Build Settings editor to configure the build setting directly.

I don't want to convert the whole project to 3.0 yet.

So my question is how do I keep everything same after Xcode 8.0 update?

like image 958
The Cook Avatar asked Jan 20 '26 06:01

The Cook


1 Answers

In case you want to use Swift 2.3 you should go to Build Settings -> Use Legacy Swift Language Version -> YES this will help you to achieve it. after building the app, there will be minor syntax issues. After fixing (not so hard) it will go as usual

like image 162
C0mrade Avatar answered Jan 21 '26 19:01

C0mrade



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!