How to create a pod file in Xcode and open it via terminal?

To create a pod file in Xcode project, make sure current directory points to your Xcode project and type the following command to create a pod file in project folder.

pod init

Now the above command has created a new pod file to our project.

In order to open that file from terminal, type the following command (make sure current directory points to your in Xcode project)

open -a Xcode Podfile

Leave a Reply