Playing around with Xcode 8

Playing around with Xcode 8

関西モバイルアプリ研究会 #16での発表資料です #関モバ

7ddcca09c00a2744b983974225447d19?s=128

Sho Ikeda

July 27, 2016
Tweet

Transcript

  1. Playing around with Xcode 8 @ikesyo ؔ੢ϞόΠϧΞϓϦݚڀձ #16, 2016-07-27 Wed

    #ؔϞό
  2. @ikesyo • ͍͚͠ΐʔʗ஑ా ᠳ • ͸ͯͳ@ژ౎ • https://twitter.com/ikesyo • https://github.com/ikesyo

  3. ✨ Contributions ✨ • ReactiveCocoa • Carthage (Commandant, ReactiveTask) •

    Result • Himotoki • APIKit • OHHTTPStubs <- New! ✨
  4. Xcode 8

  5. Topics • Code Signing • New xcodebuild Actions • Objective-C

    ! Out of Scope ! • Interface Builder • Editor Extensions • Debugging: Runtime Issues, Memory Debugger, ... • ...
  6. Code Signing • Automatic Signing: Teamࢦఆ͕ඞਢʹ • beta 1, beta

    2: iOS/tvOS/watchOSͷframework΋code sign͕ඞਢʹͳ͍ͬͯͨ • CODE_SIGNING_REQUIRED=NO, CODE_SIGN_IDENTITY= Ͱճආ • beta 3: frameworkͷcode signing͕ඞਢ͡Όͳ͘ͳͬͨ • Teamࢦఆ͕ͳ͍৔߹͸εΩοϓ͞ΕΔΑ͏ʹͳͬͨ • ࠓ·Ͱ௨ΓɺΞϓϦͷόϯυϧʹίϐʔ͞ΕΔ࣌ʹcode sign͞ΕΔඞཁ͸͋Δ Xcode does not require code signing for iOS frameworks, and will skip signing a framework if a team is not set. Frameworks should be signed when copied into the hosting product (using the Code Sign on Copy flag in a Copy Files build phase). (26892618)
  7. New xcodebuild Actions • xcodebuild build-for-testing

  8. New xcodebuild Actions • xcodebuild test-without- building

  9. New xcodebuild Actions • xcodebuild build-for-testing • xcodebuild test-without-building •

    CIɺಛʹTravisͳͲͰ xcodebuild test ΍ xcodebuild build test Ͱ γϛϡϨʔλʔىಈ଴ͪͷ··ࣦഊ͢Δέʔε • xcodebuild build-for-testing test-without-building ͱ͢Δͱ վળ͢Δงғؾ ! • [Travis] Use build-for-testing and test-without-building build actions on Xcode 8 by ikesyo · Pull Request #133 · ikesyo/Himotoki
  10. Objective-C • Class Properties • __auto_type

  11. Objective-C - Class Properties // before @interface FooBar : NSObject

    + (NSString *)baz; + (void)setBaz(NSString *)baz; + (NSString *)hoge; @end // after @interface FooBar : NSObject @property(class) NSString *baz; @property(class, readonly) NSString *hoge; @end • ετϨʔδ͸ͳ͍ͷͰɺैདྷ௨ΓήολʔɺηολʔΛ࣮૷͢Δ • Swiftͱͷ૬ޓӡ༻ੑͷ޲্
  12. Objective-C - __auto_type #define let __auto_type const #define var __auto_type

    let foo = @"foo"; // NSString * const foo = @"foo"; var bar = @"bar"; // NSString *bar = @"bar"; • C++ͷ auto ͱಉ༷ • C/Objective-CͰར༻Մೳ
  13. References • Xcode 8 - What's New - Apple Developer

    • What’s New in Xcode • Andrew's Blog — Objective-C Class Properties • Joe Groff͞ΜͷπΠʔτ: "If you're an Objective-C developer and feeling left out on new language features: https://t.co/ JIXqMw25dF" • Swifty Objective-C | PSPDFKit SDK - The leading framework for displaying and annotating PDFs on iOS, Android and the Web.
  14. !" Happy Xcode 8 life!! "!

  15. Thank you❗"