When using Xcode's automatic conversion to the latest swift syntax, what is the protocol on converting 3rd party framework targets?
From what I remember from previous conversions, I would opt to convert to swift X.X and the dialogue box that would appear would only have my project target preselected for conversion. However, when I go to convert to Swift 4.2, all of the cocoa pod frameworks I am utilizing are preselected.
It got me wondering what is the protocol for converting to the latest swift versions? If there is one that is...
You need to redownload Xcode 10.1 from this page, convert your code to Swift 4, then redownload Xcode 10.2 and convert to Swift 5.
Swift 5 adds many cool features to Swift 4.2 and makes the language ABI stable. This is an important milestone in the language's evolution, since there will be fewer changes from now on. You can read more about the changes in this version of Swift on the official Swift CHANGELOG or the Swift standard library diffs.
A shared framework in Cocoapods is refered to as a pod . Once we have captured our project targets and its requirements we have to tell Cocoapods to set up our project based on our project specification.
There is no protocol. All targets which are compiled with Swift 4.1 and lower will be listed in the conversion dialog box.
Uncheck all pods.
It's not required to convert all targets. In Xcode 10 each target can be compiled separately with Swift 3, 4, or 4.2. If you get errors in the pods after building make sure that the Swift Language Version is set to Swift 4 (or even 3) in Build Settings of the pod targets.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With