Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Share Xcode Templates with team
Search
Kento Nagata
May 23, 2018
Technology
2
1.3k
Share Xcode Templates with team
テンプレートの作成と共有を簡単にしよう
https://github.com/ngtk/xcode-template
Kento Nagata
May 23, 2018
Tweet
Share
More Decks by Kento Nagata
See All by Kento Nagata
中小病院向け、レセコン一体型電子カルテの開発の面白さ
ngtk
0
680
Generating Accessibility Identifiers Easily and Consistently Using Reflection API
ngtk
3
640
プロダクト改善の施策を提案できるようになろう! / Let's be able to propose measures for product growth!
ngtk
14
37k
施策提案ワークショップ / Measures creation workshop
ngtk
3
35k
Swift API Design learning from Cocoa API changes
ngtk
0
840
Page Object Pattern with XCUITest
ngtk
6
2.1k
Atomic Design の導入と実践プロセス
ngtk
4
1.9k
Yet another simple logger
ngtk
2
1.8k
Read the release note of Rails 5.2
ngtk
0
490
Other Decks in Technology
See All in Technology
Product Engineer Night #6プロダクトエンジニアを育む仕組み・施策
hacomono
PRO
1
470
新卒1年目が挑む!生成AI × マルチエージェントで実現する次世代オンボーディング / operation-ai-onboarding
cyberagentdevelopers
PRO
1
160
GitHub Universe: Evaluating RAG apps in GitHub Actions
pamelafox
0
170
わたしとトラックポイント / TrackPoint tips
masahirokawahara
1
240
20241031_AWS_生成AIハッカソン_GenMuck
tsumita
0
110
事業者間調整の行間を読む 調整の具体事例
sugiim
0
1.4k
MAMを軸とした動画ハンドリングにおけるAI活用前提の整備と次世代ビジョン / abema-ai-mam
cyberagentdevelopers
PRO
1
110
クライアントサイドでよく使われる Debounce処理 をサーバサイドで3回実装した話
yoshiori
1
150
2024-10-30-reInventStandby_StudyGroup_Intro
shinichirokawano
1
620
オーティファイ会社紹介資料 / Autify Company Deck
autifyhq
9
120k
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
AIを駆使したゲーム開発戦略: 新設AI組織の取り組み / sge-ai-strategy
cyberagentdevelopers
PRO
1
130
Featured
See All Featured
Six Lessons from altMBA
skipperchong
26
3.5k
Testing 201, or: Great Expectations
jmmastey
38
7k
The Art of Programming - Codeland 2020
erikaheidi
51
13k
Making Projects Easy
brettharned
115
5.9k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.2k
KATA
mclloyd
29
13k
Embracing the Ebb and Flow
colly
84
4.4k
Build The Right Thing And Hit Your Dates
maggiecrowley
32
2.4k
Done Done
chrislema
181
16k
Automating Front-end Workflow
addyosmani
1365
200k
How GitHub (no longer) Works
holman
311
140k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Transcript
©2018 Wantedly, Inc. Share Xcode Templates with team potatotips #51
23.May.2018 - @ngtk, Kento Nagata ςϯϓϨʔτͷ࡞ͱڞ༗Λ؆୯ʹ͠Α͏
©2018 Wantedly, Inc. Ӭా݈ਓ 8BOUFEMZ *OD&OHJOFFS !OHULOU !OHUL • Wantedly
VisitͷΞϓϦΛ։ൃ͍ͯ͠·͢ • Swift/iOS։ൃΛ͡Ίͯ5ϲ݄͘Β͍ • ͦͷલRails, React, Reduxͱ͔Σϒͷ։ൃΛ͍ͬͯͨਓ • Potatotipsલճʹଓ͖2ճ ☺
©2018 Wantedly, Inc. XcodeͷςϯϓϨʔτػೳ ͬͨ͜ͱ͋Γ·͔͢ʁ
©2018 Wantedly, Inc. ҰൠʹɺςϯϓϨʔτػೳ ڞ௨ͷهड़Λॻ͔ͣʹࡁΉͷͰੜ࢈త
©2018 Wantedly, Inc. ͪΖΜɺ ϓϩτίϧΤΫεςϯγϣϯ ίʔυࣗಈੜ ͳͲίʔυʹΑΔڞ௨ԽʹΑͬͯهड़ྔΛ ݮΒ͢͜ͱ͕લఏͰɺ Δஆ͔ຯ͕ςϯϓϨʔτ
©2018 Wantedly, Inc. XcodeͰͲ͏ͳͷ͔ʁ
©2018 Wantedly, Inc. How to use Xcode template New File
FIle > New > File…⌘N͔Β৽ن࡞͢Δͱ͖ʹબ Δɻ
©2018 Wantedly, Inc. How to use Xcode template File Template
Library XcodeͷӈԼʹ͋Δͭɺ͔͜͜Βυϥοάͯ͠ࠨ ΧϥϜͷσΟϨΫτϦ(Project Navigator)ʹυϩο ϓ͢Δͱ࡞Ͱ͖Δɻ
©2018 Wantedly, Inc. Αͦ͞͏Ͱ͢Ͷʂ
©2018 Wantedly, Inc. ͨͩ͠ɺΧελϜͰՃ͢Δํ๏ ϓϩδΣΫτͰڞ༗͢Δํ๏ɺ ެࣜͷυΩϡϝϯτ͕ͳ͍ͨΊ ͔ΓͮΒ͍…
©2018 Wantedly, Inc. ͔͠ɺProjectWorkspaceͰ ڞ༗͢ΔΈఏڙ͞Ε͍ͯͳ͍
©2018 Wantedly, Inc. ڞ༗͢ΔΈΛ࡞Δ
©2018 Wantedly, Inc. 1. ৽نՃ: ϓϦηοτͰ༻ҙ͞Ε͍ͯΔͷΛίϐϖͯ͠ ࡞ 2. ڞ༗ํ๏: ϦϙδτϦʹνΣοΫΠϯͯ͠ɺ
దͳॴʹϦϯΫ͢ΔεΫϦϓτΛॻ͘ Δ͖͜ͱ
©2018 Wantedly, Inc. ϓϦηοτͷςϯϓϨʔτ(Swift File)Λ ϦϙδτϦʹίϐʔͯ͠Ճ A"QQMJDBUJPOT9DPEFBQQ$POUFOUT%FWFMPQFS-JCSBSZ9DPEF 5FNQMBUFT'JMFa5FNQMBUFT4PVSDF4XJGUa'JMFYDUFNQMBUFA
©2018 Wantedly, Inc.
©2018 Wantedly, Inc. ___FILEBASENAME___.swift
©2018 Wantedly, Inc. TemplateInfo.plist
©2018 Wantedly, Inc. ςϯϓϨʔτϑΝΠϧΛ దͳॴʹஔ͢Δ εΫϦϓτΛॻ͘
©2018 Wantedly, Inc. దͳॴ A)0.&-JCSBSZ%FWFMPQFS9DPEF5FNQMBUFTA
©2018 Wantedly, Inc. ͍͠ʂ
©2018 Wantedly, Inc. #!/bin/bash project_template_dir=$(cd $(dirname ${BASH_SOURCE:-$0})/../Templates; pwd) global_template_dir="$HOME/Library/Developer/Xcode/Templates" global_project_template_dir="$global_template_dir/visit-ios"
function main() { prepare link_project_to_global echo "" echo "Installed✨ " echo "" show_instruction } function prepare() { if [ ! -e $global_template_dir ]; then mkdir -p $global_template_dir echo "+ Created template directory: $global_template_dir" fi } function link_project_to_global() { if [ -e "$global_project_template_dir" ]; then echo "Alread linked. $global_project_template_dir" echo "" show_instruction exit 1 fi ln -s $project_template_dir $global_project_template_dir echo "+ Linked to $global_project_template_dir" } function show_instruction() { echo "You can use it from \"File Template Library\"." echo "" echo " Xcode > View > Utilities > Show File Template Library" echo "" } main Install-template
©2018 Wantedly, Inc. ͋ͱΈΜͳʹ࣮ߦͯ͠Β͏͚ͩʂ
©2018 Wantedly, Inc. ΊͰͨ͠ɺΊͰͨ͠ʂ ✨
©2018 Wantedly, Inc. Μɺͪΐͬͱͬͯ
©2018 Wantedly, Inc. ͜Ε৽͘͠ςϯϓϨʔτՃ͢Δͷ ΊΜͲ͘͘͞ͳ͍ʁ
©2018 Wantedly, Inc. ଞͷϓϩδΣΫτͰ ࠶ݱͮ͠Β͍Α͏ͳ…
©2018 Wantedly, Inc. ͱ͍͏͜ͱͰɺίϚϯυʹ͠·ͨ͠
©2018 Wantedly, Inc. “xcode-template” ςϯϓϨʔτͷ࡞ͱڞ༗Λ؆୯ʹ IUUQTHJUIVCDPNOHULYDPEFUFNQMBUF
©2018 Wantedly, Inc. $ brew install ngtk/tools/xcode-template )PNFCSFXͰΠϯετʔϧͰ͖·͢ IUUQTHJUIVCDPNOHULYDPEFUFNQMBUF
©2018 Wantedly, Inc. $ xctemplate g UIViewController ςϯϓϨʔτΛ࡞ͯ͠ɺϓϩδΣΫτʹஔ IUUQTHJUIVCDPNOHULYDPEFUFNQMBUF
©2018 Wantedly, Inc. $ xctemplate link 9DPEFͰར༻Մೳʹ͢Δ IUUQTHJUIVCDPNOHULYDPEFUFNQMBUF
©2018 Wantedly, Inc.
©2018 Wantedly, Inc. ੋඇɺͬͯΈ͍ͯͩ͘͞
©2018 Wantedly, Inc. ·ͱΊ
©2018 Wantedly, Inc. 1. ςϯϓϨʔτΛͬͯޮԽ͠Α͏ • ͦͷલʹίʔυͰͰ͖Δڞ௨ԽΖ͏ʂ 2. νʔϜͰڞ༗͠Α͏ 3.
xcode-templateͰ؆୯ʹ࡞ɾڞ༗Ͱ͖ΔΑ • https://github.com/ngtk/xcode-template • ࠓ࡞ͬͯ·ͩࡶͳͱ͜Ζ͕ଟ͍ͷͰɺ͜ͷޙ͏ͪΐͬͱؤுΓ·͢ ·ͱΊ
©2018 Wantedly, Inc. Thank you! ☺