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

Time for Xcode Behavior

Time for Xcode Behavior

Tachibana Kaoru

February 22, 2018
Tweet

More Decks by Tachibana Kaoru

Other Decks in Technology

Transcript

  1. About Me • @TachibanaKaoru • iOS freelance engineer • This

    years theme : No Travel, No Work! • Bali όϦౡ • Greece ΪϦγϟ
  2. What can it do? Xcode Source Code Extension Xcode Behavior

    XcodeͷΤσΟλʔͰࠓͻΒ ͍͍ͯΔϑΝΠϧͷத਎Λม ߋ͢Δ͜ͱ͔͠Ͱ͖ͳ͍ɻ Xcode͔Βಠཱͯ͠ಈ࡞͢Δ εΫϦϓτͳͷͰɺͳΜͰ΋ Ͱ͖Δɻ
  3. context from Xcode... Xcode Source Code Extension Xcode Behavior XcodeͰ։͍͍ͯΔϑΝΠϧ

    ͷத਎ͷΈऔಘͰ͖Δɻ ؀ڥม਺ͰࠓXcodeͰ։͍ͯ ͍ΔϓϩδΣΫτ͕Θ͔Δɻ
  4. Programming Language Xcode Source Code Extension Xcode Behavior XcodeͰίϯύΠϧͰ͖Δݴ ޠͷΈ

    εΫϦϓτͱͯ͠࢖͑Δݴޠ ͳΒͳΜͰ΋ՄɻSwiftͰ΋ɺ γΣϧεΫϦϓτͰ΋ɺapple scriptͰ΋ɺrubyͰ΋ɻ
  5. script to change preview mode of markdown in Xcode #!/usr/bin/swift

    import Foundation let env = ProcessInfo.processInfo.environment let manager = FileManager.default let fileNakami = "...." if let pathValue = env["XcodeProjectPath"] as? String{ var fileURL = URL(fileURLWithPath: pathValue) fileURL.appendPathComponent(".xcodesamplecode.plist") try! fileNakami.write(to: fileURL, atomically: true, encoding: String.Encoding.utf8) } https://gist.github.com/TachibanaKaoru/ 4ffa5dda9b86b4f0ef1a02e064ba34e9