According to my ballpark estimates, we as iOS devs spend quite some time clicking through folders finding where we have to open terminal.
Let's say you work 20 days a month, install cocoapods twice a day, and it takes you 14 seconds to perform the action up until the pressing enter on pods install.
20 * 2 * 14s = 560s
Or about 10 minutes each month, that is roughly two hours a year. That is two hours ! Heck, even if it's half of it, you're not wasting your life scrolling through folders.
Therefore I have these two scripts for your enjoyment:
1) Open terminal in current Xcode project
When in Xcode, click a keyboard shortcut and terminal in that folder appears. This is a cool one.
2) Run pod install in the current project.
This is even cooler one and it saves you a lot of time when you switch branches (running pod install just to make sure all the pods are there), or switching projects.
How to get it
The installation (if you can call it that) is dead simple, copy the files in a folder. Go to Xcode and assign a keyboard shortcut to run each file (very simple).
The shortcuts are available on my Github repo alongside step by step tutorial.
If you found value in this, leave a heart on this article down below.
Do you have a suggestion for a cool automation script ? Comment down below, I might make it for you :)
Top comments (0)