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
Terraform Stacks入門 #HashiTalks
msato
0
360
OS 標準のデザインシステムを超えて - より柔軟な Flutter テーマ管理 | FlutterKaigi 2024
ronnnnn
0
210
Amplify Gen2 Deep Dive / バックエンドの型をいかにしてフロントエンドへ伝えるか #TSKaigi #TSKaigiKansai #AWSAmplifyJP
tacck
PRO
0
390
リンクアンドモチベーション ソフトウェアエンジニア向け紹介資料 / Introduction to Link and Motivation for Software Engineers
lmi
4
300k
データプロダクトの定義からはじめる、データコントラクト駆動なデータ基盤
chanyou0311
2
330
AWS Lambdaと歩んだ“サーバーレス”と今後 #lambda_10years
yoshidashingo
1
180
テストコード品質を高めるためにMutation Testingライブラリ・Strykerを実戦導入してみた話
ysknsid25
7
2.7k
AI前提のサービス運用ってなんだろう?
ryuichi1208
8
1.4k
これまでの計測・開発・デプロイ方法全部見せます! / Findy ISUCON 2024-11-14
tohutohu
3
370
VideoMamba: State Space Model for Efficient Video Understanding
chou500
0
190
AWS Lambda のトラブルシュートをしていて思うこと
kazzpapa3
2
180
EventHub Startup CTO of the year 2024 ピッチ資料
eventhub
0
120
Featured
See All Featured
The Cult of Friendly URLs
andyhume
78
6k
Code Review Best Practice
trishagee
64
17k
Git: the NoSQL Database
bkeepers
PRO
427
64k
GitHub's CSS Performance
jonrohan
1030
460k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
44
2.2k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
229
52k
Optimising Largest Contentful Paint
csswizardry
33
2.9k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
109
49k
Writing Fast Ruby
sferik
627
61k
Embracing the Ebb and Flow
colly
84
4.5k
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! ☺