Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I compile old Swift code with Xcode 7 beta?

Tags:

xcode

ios

swift

I am newbie to iOS development in Swift. Just started one day ago.

Currently I just tried the recent Xcode 7 Beta. Before I was installing Xcode 6.3, then I removed or uninstalled it because I was curious with Xcode 7 beta and its Swift version 2.

Having said that, I have a project which use old Swift code. The code base is pretty large, attempting to convert the old Swift 1.2 to Swift 2.0 is breaking the code heavily. I am wondering if there is a way to compile or build my old project using Xcode 7 beta which support Swift 2?

I also would like to know if there is a way to back port current Xcode. Or Should I install back Xcode 6.3?

like image 793
rhzs Avatar asked Jun 15 '15 13:06

rhzs


1 Answers

Go to the top left menu... Edit> Convert> To the newest language you're using.

like image 156
Andy Lebowitz Avatar answered Nov 15 '22 05:11

Andy Lebowitz