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

Playing around with Xcode 8

Playing around with Xcode 8

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

Sho Ikeda

July 27, 2016
Tweet

More Decks by Sho Ikeda

Other Decks in Programming

Transcript

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

    Result • Himotoki • APIKit • OHHTTPStubs <- New! ✨
  2. Topics • Code Signing • New xcodebuild Actions • Objective-C

    ! Out of Scope ! • Interface Builder • Editor Extensions • Debugging: Runtime Issues, Memory Debugger, ... • ...
  3. 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)
  4. 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
  5. 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ͱͷ૬ޓӡ༻ੑͷ޲্
  6. 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Ͱར༻Մೳ
  7. 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.