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
710
Generating Accessibility Identifiers Easily and Consistently Using Reflection API
ngtk
3
660
プロダクト改善の施策を提案できるようになろう! / Let's be able to propose measures for product growth!
ngtk
14
38k
施策提案ワークショップ / Measures creation workshop
ngtk
3
36k
Swift API Design learning from Cocoa API changes
ngtk
0
850
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
510
Other Decks in Technology
See All in Technology
MLOps の現場から
asei
6
630
KnowledgeBaseDocuments APIでベクトルインデックス管理を自動化する
iidaxs
1
250
1等無人航空機操縦士一発試験 合格までの道のり ドローンミートアップ@大阪 2024/12/18
excdinc
0
150
Amazon SageMaker Unified Studio(Preview)、Lakehouse と Amazon S3 Tables
ishikawa_satoru
0
150
社内イベント管理システムを1週間でAKSからACAに移行した話し
shingo_kawahara
0
180
NW-JAWS #14 re:Invent 2024(予選落ち含)で 発表された推しアップデートについて
nagisa53
0
250
どちらを使う?GitHub or Azure DevOps Ver. 24H2
kkamegawa
0
630
宇宙ベンチャーにおける最近の情シス取り組みについて
axelmizu
0
110
Microsoft Azure全冠になってみた ~アレを使い倒した者が試験を制す!?~/Obtained all Microsoft Azure certifications Those who use "that" to the full will win the exam! ?
yuj1osm
1
110
WACATE2024冬セッション資料(ユーザビリティ)
scarletplover
0
190
Amazon Kendra GenAI Index 登場でどう変わる? 評価から学ぶ最適なRAG構成
naoki_0531
0
100
なぜCodeceptJSを選んだか
goataka
0
160
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
232
17k
Done Done
chrislema
181
16k
Six Lessons from altMBA
skipperchong
27
3.5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
28
2.1k
Optimizing for Happiness
mojombo
376
70k
Become a Pro
speakerdeck
PRO
26
5k
The Invisible Side of Design
smashingmag
298
50k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
Writing Fast Ruby
sferik
628
61k
Site-Speed That Sticks
csswizardry
2
190
Building Adaptive Systems
keathley
38
2.3k
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
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! ☺