0

After I run pod init in the terminal to add a Podfile to an Xcode project, I thought I would see it added to my Xcode project - instead it is seems to be only added to the folder for the Xcode project in the file system, and I have to add it manually into the Xcode project and then run pod install. From there on, I can see it in my xcworkspace.

My question is - is this the correct way to add a podfile? Should I not see it in my Xcode project immediately after running pod init in the terminal? Do I have to manually drag it into the Xcode project and then run pod install?

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223
cheznead
  • 2,589
  • 7
  • 29
  • 50

2 Answers2

2

When you add the pod file and run pod init you won't see changes in your project because the changes are made to the workspace.

So after installing and running pod init you need to open the .xcworkspace file instead of the .xcproj file. In fact, I think there is a message in the terminal that tells you what file you should open.

Abizern
  • 146,289
  • 39
  • 203
  • 257
1

The Podfile will be automatically added to your Xcode project after you run pod install; you don't have to drag it in manually.

Tamás Sengel
  • 55,884
  • 29
  • 169
  • 223