Method: Pod::Podfile::DSL#workspace

Defined in:
lib/cocoapods-core/podfile/dsl.rb

#workspace(path) ⇒ void

This method returns an undefined value.

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.

Examples:

Specifying a workspace


workspace 'MyWorkspace'

Parameters:

  • path (String)

    path of the workspace.



811
812
813
# File 'lib/cocoapods-core/podfile/dsl.rb', line 811

def workspace(path)
  set_hash_value('workspace', path.to_s)
end