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
開発効率を考えてみました。xsort
Search
keisukeYamagishi
February 01, 2022
330
0
Share
開発効率を考えてみました。xsort
keisukeYamagishi
February 01, 2022
More Decks by keisukeYamagishi
See All by keisukeYamagishi
RxAlert 結構便利だと思います。
keisukeyamagishi
0
200
Chart実装が楽になりました。
keisukeyamagishi
0
1.1k
NabigationControllerとの付き合い方
keisukeyamagishi
0
320
MVVMについて.pdf
keisukeyamagishi
0
490
Featured
See All Featured
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
350
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
140
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
130
Designing Powerful Visuals for Engaging Learning
tmiket
1
360
How to Get Subject Matter Experts Bought In and Actively Contributing to SEO & PR Initiatives.
livdayseo
0
120
Discover your Explorer Soul
emna__ayadi
2
1.1k
The Cost Of JavaScript in 2023
addyosmani
55
9.9k
Typedesign – Prime Four
hannesfritz
42
3k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.5k
Test your architecture with Archunit
thirion
1
2.2k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
230
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様大歓迎です🎉