Pod Install Hook Up With Xcode IDE

MdNiks
The Startup
Published in
2 min readSep 26, 2020

--

Using shell script make your Xcode IDE become more RICH.

Photo by iMattSmart on Unsplash

Welcome Guys,

When you will start a new project in Xcode sometime you need install pod for utilization existing components or SDK so always you have followed below steps.

  1. Open Terminal
  2. Cd your project directory path
  3. Pod init → add your pod name into file
  4. Then Pod install.

OR sometimes just execute Pod install command for existing project or when you will switch your branches.

So you are little bit aware about shell script then you have to create script and hook up with Xcode and Xcode shout cut will do same job for you.

Let’s see how it will be happen.

  1. First you need to create shell script file if you are not aware shell scrip don’t worry you can downloads from here.
Pod-Init.sh
Pod-Install.sh

Pump the script into Xcode.

Xcode → Behaviour →Tap On + Button → Name the custom workflow as PodInit, PodInstall → Run Script → Select the script

If you are not able to select .sh file from run drop down then open terminal and execute below command.

chmod +x <my file name>.sh

Just use it. w00t! How cool is that and all done with just a few lines of shell scrip code!. Look below images so you will get more clear idea how it’s work !!!!

https://theniks.github.io/Portfolio/

If you have any comments or questions, please respond below! I’d love to hear from you.

--

--

MdNiks
The Startup

I'm an accomplished iOS programmer with more than 12 years of experience working in a collaborative environment with tight deadlines.