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
Commitment vs Harrisonism - Keynote for Scrum Niseko 2024
miholovesq
6
1.1k
pandasはPolarsに性能面で追いつき追い越せるのか
vaaaaanquish
4
4.5k
Product Engineer Night #6プロダクトエンジニアを育む仕組み・施策
hacomono
PRO
1
470
신뢰할 수 있는 AI 검색 엔진을 만들기 위한 Liner의 여정
huffon
0
330
生成AIとAWS CDKで実現! 自社ブログレビューの効率化
ymae
2
330
Figma Dev Modeで進化するデザインとエンジニアリングの協働 / figma-with-engineering
cyberagentdevelopers
PRO
1
430
Amazon FSx for NetApp ONTAPを利用するにあたっての要件整理と設計のポイント
non97
1
160
新卒1年目が向き合う生成AI事業の開発を加速させる技術選定 / ai-web-launcher
cyberagentdevelopers
PRO
7
1.5k
20241031_AWS_生成AIハッカソン_GenMuck
tsumita
0
110
よくわからんサービスについての問い合わせが来たときの強い味方 Amazon Q について
kazzpapa3
0
220
マネジメント視点でのre:Invent参加 ~もしCEOがre:Inventに行ったら~
kojiasai
0
460
「 SharePoint 難しい」ってよく聞くけど、そんなに言うなら8歳の息子に試してもらった
taichinakamura
1
620
Featured
See All Featured
Designing the Hi-DPI Web
ddemaree
280
34k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
3
370
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
131
33k
We Have a Design System, Now What?
morganepeng
50
7.2k
A Tale of Four Properties
chriscoyier
156
23k
Speed Design
sergeychernyshev
24
570
What's in a price? How to price your products and services
michaelherold
243
12k
4 Signs Your Business is Dying
shpigford
180
21k
RailsConf 2023
tenderlove
29
880
GraphQLの誤解/rethinking-graphql
sonatard
66
9.9k
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! ☺