Tuesday 18 October 2016

Swift Version migrating using Xcode 8

If you are migrating your code from Xcode 7.3 to 8. Please do not convert swift languages to 3.0. There is lot of syntax changes from swift 2.3 to 3.

 Here is steps Step to run the your old on Xcode 8.0

1. When you open your code in xcode 8 at very first time it ask to upgrate to swift 3.0.
2. Choose Later option then Xcode ask for upgrtion
3. Choose Later again
4. Go to SWIFT_VERSION in Build setting, Change use legacy swift languges version to YES for swift version 2.3

if you are using CocoaPod Please add following lines
5. Add following line at end of your PodFile and Run Pod Install or update

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '2.3'
        end
    end
end

Happy Coding!!!

#Xcode8 #iOS #Apple #Coding #iPhone
© 2016 Girijesh
In case if any query/Concern send me a email @girijeshkumar2007@gmail.com

No comments: