Migrating iOS Project from Swift 2.3 to 3.0 in XCode
1 min readApr 4, 2018
Solution 1:
Xcode itself providing a option to migrate from swift 2.3 to swift 3.0. Update your Xcode to the latest 8.0 and here you go.
Edit > Convert > To Current Swift Syntax
there you have an option to convert which version you want!
hope this answer will help you!
Solution 2:
In your Podfile, add use_frameworks! and pod ‘RealmSwift’ to your main and test targets. Paste the following at the bottom of your Podfile updating the Swift version to 3.0
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings[‘SWIFT_VERSION’] = ‘3.0’
end
end
end
If you like this article. click the applause button! 👏 Follow me on Github, Twitter, Facebook.