Slide 1

Slide 1 text

Migrating to Swift 3.0

Slide 2

Slide 2 text

90 Changes It breaks things * https://swift.org/blog/swift-3-0-released/

Slide 3

Slide 3 text

Preparation

Slide 4

Slide 4 text

• 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

Slide 5

Slide 5 text

Installation

Slide 6

Slide 6 text

• Move your current Xcode 7 to different folder !! • Install Xcode 8, download from Apple Developer website

Slide 7

Slide 7 text

The tricky part

Slide 8

Slide 8 text

• 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)

Slide 9

Slide 9 text

• Update your Podfile / Cartfile • pod install / carthage update Cocoapods & Carthage • Build and integrate dependancy manually • carthage update --no-build Alternative ??

Slide 10

Slide 10 text

Moving on

Slide 11

Slide 11 text

• Follow Swift API Guideline • Try not to depend on 3rd Party library so much • Contribute to Swift project

Slide 12

Slide 12 text

• https://swift.org/migration-guide/ • https://swift.org/documentation/api-design- guidelines/ • https://swift.org/blog/swift-3-0-released/ Resources