Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"No targets to convert found" when trying to convert to current Swift syntax

I have searched quite a bit and can't seem to find an answer for this specific problem. I have a project that is a bit older and written in Swift 2. I am trying to convert it to Swift 4, by going to "Edit > Convert > To current Swift Syntax..."

It opens a modal, which is blank inside, at the top says: "No targets to convert found."

I have tried messing around with it, just can't seem to figure this out. Any help is appreciated! Screenshot of what I get here

like image 540
vtboyarc Avatar asked Dec 14 '17 23:12

vtboyarc


1 Answers

Use Xcode 10.1 to convert swift 3.0 to swift 4.2, then use Xcode 11.2 to convert swift 4.2 to swift 5.0.

like image 180
Victor Choy Avatar answered Oct 04 '22 23:10

Victor Choy