I'm kinda new to Swift (less than 1 full year), and I'm not sure how to update to latest Swift within the new Xcode each year. My project has been started under Xcode 8
and Swift 3.2
. Now I upgraded Xcode 9
, which AFAIU supports Swift 4
.
Since I'm using Cocoapods
, I obviously updated all pods to their latest versions, which I believe is correct behavior.
However, I see that the Swift version
in target settings is still set to Swift 3.2
. What exactly does that mean? Should I change it to Swift 4
instead? Or that's just like minimum version that I have to write code according to?
Also, I have 2 warnings in the project:
Regardings Pods, it is clear that Cocoapods
will fix that, so np.
What about my Workspace? My target builds fine without errors and warnings, I'm not sure why it tells me about conversion? Shouldn't it tell an exact line in the file with code instead?
Please, describe what is the correct flow of update to latest Swift in general, and how this works with some of pods that are not updating to the latest Swift each year. Will I be forced to remove them, or like fork and update to latest Swift manually?