Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
開発効率を考えてみました。xsort
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
keisukeYamagishi
February 01, 2022
340
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
開発効率を考えてみました。xsort
keisukeYamagishi
February 01, 2022
More Decks by keisukeYamagishi
See All by keisukeYamagishi
RxAlert 結構便利だと思います。
keisukeyamagishi
0
220
Chart実装が楽になりました。
keisukeyamagishi
0
1.2k
NabigationControllerとの付き合い方
keisukeyamagishi
0
350
MVVMについて.pdf
keisukeyamagishi
0
510
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
77
5.6k
How to Ace a Technical Interview
jacobian
280
24k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
540
Design in an AI World
tapps
1
350
The untapped power of vector embeddings
frankvandijk
2
1.9k
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
2
460
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
860
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
2
310
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Deep Space Network (abreviated)
tonyrice
0
350
Optimising Largest Contentful Paint
csswizardry
37
4k
So, you think you're a good person
axbom
PRO
2
2.2k
Transcript
開発効率を考えた、gemです
初めまして、山岸と申します。 Github: https://github.com/keisukeYamagishi Twitter: https://twitter.com/jelly_0_o Qiita: https://qiita.com/keisukeYamagishi/items/a055c4b33e2c42d667e7
Xcodeのファイルツリーのファイルの並び順が汚いとファイル が探しづらい
ファイルの名前順で並んでいない、拡張子の名前で並んでい ない、名前順で上から並んでいると分かりやすいと思いまし た。
Xcodeのファイルツリーはxcodeprojの中に同梱されている、 project.pbxprojで管理されています。 このファイルは、ビルドするファイルや、アプリで使う画像、依存する ライブラリー、ビルドの方法等々を管理します。 Xcodeのファイルツリーの順番もここで管理しております。
project.pbxprojはこんなファイルです。
D&Dで並び替えると間違えたり、してしまうので、どうし たものか、、、
None
Rubyで作ってみました🎉
project.pbxprojの文字列を抽出し、ファイル名と、拡張子の名 前で並び替えるロジックを作成しました。
iOSの開発者はほとんどがMacなので、Macのデフォルトでイ ンストールされている、Rubyのバージョンで動くGemになって ます。 インストール方法は
None
デフォルトの場合 コマンド:sudo gem install xsort gemがhome直下にある場合 コマンド: gem install xsort
実行するとファイル名と拡張子でソートできます。
私はファイルツリーの並び順がおかしくなりすぎた時に 使います。 ただ、数字を多様している場合は、数字でのソート機能 は一桁までしか対応できていません、 その旨ご留意下さい。
Contributor様大歓迎です🎉