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

WWDC16のLabで既存プロジェクトをXcode 8対応する方法を聞いてきました

fromkk
June 24, 2016

WWDC16のLabで既存プロジェクトをXcode 8対応する方法を聞いてきました

AKIBA.swift 第3回で発表した内容です

fromkk

June 24, 2016
Tweet

More Decks by fromkk

Other Decks in Technology

Transcript

  1. Agenda • Xcode 8 betaͷμ΢ϯϩʔυ • طଘϓϩδΣΫτΛ։͍ͯΈΔ • Swift 2.3ͱ͸ʁ

    • Swift 3΁ͷϚΠάϨʔγϣϯ • Ϗϧυ͕ίέΔ໰୊΁ͷରԠ (C) fromkk. 2016 19
  2. Swift 2.3ͷར༻ํ๏ Project -> Build Setting -> Swift Compiler ->

    Use Legacy Swift Language Version ͷϑϥάΛ Yes ʹ͢Δ (C) fromkk. 2016 23
  3. Swift 3΁ͷϚΠάϨʔγϣϯͷલʹ *.xcworkspace ϑΝΠϧΛ։͍͍ͯΔͱCocoaPodsͷத਎·ͰϚΠάϨʔγϣϯ͠ ͯ͠·͏ CocoaPodsͷϓϩδΣΫτͰSwift 3ʹରԠ͍ͯ͠Δ΋ͷ͕͋ΔͳΒઌʹΞοϓσʔ τ͓͖ͯ͠·͠ΐ͏ platform :ios,

    '8.0' use_frameworks! target 'CalendarSample' do pod 'FKValidator', :git => 'https://github.com/fromkk/FKValidator.git', :branch => 'swift3' end pod install (C) fromkk. 2016 26
  4. Swift 3΁ͷϚΠάϨʔγϣϯํ๏ • Edit -> Convert -> To Current Swift

    Syntax... • SwiftͷόʔδϣϯΛબ୒ • λʔήοτΛબ୒ • ϓϨϏϡʔΛ֬ೝ • SaveΛΫϦοΫ • ֬ೝΞϥʔτ͕දࣔ͞Εɺͦͷ··ਐΉͱอଘ͞Ε·͢ɻ (C) fromkk. 2016 27
  5. ·ͱΊ ͦͷ1 • CocoaPods͸ιʔε͕ϫʔΫεϖʔεʹ͍ΔͷͰϓϩδΣΫτଆ ͕ରԠ͍ͯ͠ͳͯ͘΋ϚΠάϨʔγϣϯ͕ར༻ग़དྷΔ • Carthage͸ϓϩδΣΫτଆ͕Swift 3ʹରԠ͍ͯ͠ͳ͍৔߹ผ్ ϏϧυΛͯ͠ *.framework

    ϑΝΠϧΛ্ॻ͖͢Δඞཁ͕͋Δ • Swift 3Ͱେ෯ʹߏจ͕มߋʹͳ͍ͬͯΔ৔߹ϋϚΔՄೳੑ͕͋ ΔͷͰ࠷ѱϥΠϒϥϦଆͷΞοϓσʔτΛ଴ͭඞཁ͕͋Δʢ͔ ΋ʁʣ (C) fromkk. 2016 42