2

So I can tell CocoaPod's pod install the location of a project directory (with --project-directory). It will the apparently look for Podfile, *xcproject/ and create or update *.xcworkspace/ there.

Is there also an option for telling it that an existing workspace resides in a different directory from this project or the current directory?

The reason I am asking is described in this related question.

Community
  • 1
  • 1
Drux
  • 11,992
  • 13
  • 66
  • 116
  • What about this? http://guides.cocoapods.org/syntax/podfile.html#workspace – orkenstein Feb 13 '15 at 12:51
  • @orkenstein I made further changes in another iteration and tried your recipe. It indeed works (in my case with `workspace '../MyProject'`). I would not have guesses it from the documentation. If you want to turn your comment into an answer, I shall accept it. Thx. – Drux Feb 13 '15 at 17:47
  • Yep, what I had in mind. I'll post it, could be useful. – orkenstein Feb 13 '15 at 18:45

1 Answers1

1

CocoaPods docs states:

workspace
Specifies the Xcode workspace that should contain all the projects.

If no explicit Xcode workspace is specified and only one project exists in the same directory as the Podfile, then the name of that project is used as the workspace’s name.

Example:
workspace '../MyProject'
workspace 'folder/AnotherProject'

orkenstein
  • 2,810
  • 3
  • 24
  • 45