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
690
Generating Accessibility Identifiers Easily and Consistently Using Reflection API
ngtk
3
650
プロダクト改善の施策を提案できるようになろう! / Let's be able to propose measures for product growth!
ngtk
14
38k
施策提案ワークショップ / 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
500
Other Decks in Technology
See All in Technology
いざ、BSC討伐の旅
nikinusu
2
780
rootlessコンテナのすゝめ - 研究室サーバーでもできる安全なコンテナ管理
kitsuya0828
3
380
Lambdaと地方とコミュニティ
miu_crescent
2
370
社内で最大の技術的負債のリファクタリングに取り組んだお話し
kidooonn
1
550
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
200
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
170
【令和最新版】AWS Direct Connectと愉快なGWたちのおさらい
minorun365
PRO
5
750
[CV勉強会@関東 ECCV2024 読み会] オンラインマッピング x トラッキング MapTracker: Tracking with Strided Memory Fusion for Consistent Vector HD Mapping (Chen+, ECCV24)
abemii
0
220
信頼性に挑む中で拡張できる・得られる1人のスキルセットとは?
ken5scal
2
530
初心者向けAWS Securityの勉強会mini Security-JAWSを9ヶ月ぐらい実施してきての近況
cmusudakeisuke
0
120
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
2
240
Exadata Database Service on Dedicated Infrastructure(ExaDB-D) UI スクリーン・キャプチャ集
oracle4engineer
PRO
2
3.2k
Featured
See All Featured
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
226
22k
GraphQLとの向き合い方2022年版
quramy
43
13k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
246
1.3M
Navigating Team Friction
lara
183
14k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Optimizing for Happiness
mojombo
376
70k
Adopting Sorbet at Scale
ufuk
73
9.1k
A designer walks into a library…
pauljervisheath
203
24k
We Have a Design System, Now What?
morganepeng
50
7.2k
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! ☺