Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Migrating to Swift 3

Sergio Utama
September 19, 2016

Migrating to Swift 3

Some tips and tricks to help you migrate your code to Swift 3 almost flawlessly. The key is to follow Swift API Guideline

Presented during MyCocoaheads meetup, September 2016

Sergio Utama

September 19, 2016
Tweet

More Decks by Sergio Utama

Other Decks in Programming

Transcript

  1. • Be strict, try to solve and handle all warnings.

    • If you haven’t follow Swift API Guideline, do so • Ensure your code, works and compiled successfully on Xcode 7.3.1 • Commit the changes
  2. • Move your current Xcode 7 to different folder !!

    • Install Xcode 8, download from Apple Developer website
  3. • Open Xcode 8 • Select the correct xcode-build •

    Open your .xcodeproj and do migration to Swift 3* (do clean and clean build folder first) • Fix the errors and warning (if you’ve been following Swift API Guideline, nothing much needed)
  4. • Update your Podfile / Cartfile • pod install /

    carthage update Cocoapods & Carthage • Build and integrate dependancy manually • carthage update --no-build Alternative ??
  5. • Follow Swift API Guideline • Try not to depend

    on 3rd Party library so much • Contribute to Swift project