After updating to Xcode 8.2 the compiler throws one error for my App target:
“Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be con
Close Xcode and open the corresponding project.pbxproj
in a text editor of your choice.
Replace SWIFT_VERSION = 3.0.1;
with SWIFT_VERSION = 3.0;
for all targets.
Reopen Xcode.
Well I've finally figure it out. I've removed the project and clone it again, restarted Xcode, run pod repo update
and pod install
and it worked. I've no idea why.
I got the same error when converting parts of my app (both Obj C and Swift) to a framework, but in my case it was that the "Swift Language Version" under Build Settings wasn't set. I set it to Swift 3 (the only option), and the error went away.