Class: Xcodeproj::Project::Object::PBXProject

Inherits:
AbstractObject show all
Defined in:
lib/xcodeproj/project/object/root_object.rb

Overview

This class represents the root object of a project document.

Attributes collapse

Attributes inherited from AbstractObject

#isa, #project, #uuid

Attributes collapse

Methods inherited from AbstractObject

#<=>, #==, #display_name, #inspect, isa, #pretty_print, #remove_from_project, #sort, #sort_recursively, #to_hash

Instance Attribute Details

#attributesHash{String => String}

Note:

The hash might contain the following keys:

  • CLASSPREFIX
  • LastUpgradeCheck
  • ORGANIZATIONNAME

Returns attributes the attributes of the target.

Returns:

  • (Hash{String => String})

    attributes the attributes of the target.


23
# File 'lib/xcodeproj/project/object/root_object.rb', line 23

attribute :attributes, Hash, 'LastUpgradeCheck' => Constants::LAST_UPGRADE_CHECK

#build_configuration_listXCConfigurationList

Returns the configuration list of the project.

Returns:


27
# File 'lib/xcodeproj/project/object/root_object.rb', line 27

has_one :build_configuration_list, XCConfigurationList

#compatibility_versionString

Returns the compatibility version of the project.

Returns:

  • (String)

    the compatibility version of the project.


31
# File 'lib/xcodeproj/project/object/root_object.rb', line 31

attribute :compatibility_version, String, 'Xcode 3.2'

#development_regionString

Returns the development region of the project.

Returns:

  • (String)

    the development region of the project.


35
# File 'lib/xcodeproj/project/object/root_object.rb', line 35

attribute :development_region, String, 'English'

#has_scanned_for_encodingsString

Returns whether the project has scanned for encodings.

Returns:

  • (String)

    whether the project has scanned for encodings.


39
# File 'lib/xcodeproj/project/object/root_object.rb', line 39

attribute :has_scanned_for_encodings, String, '0'

#known_regionsArray<String>

Returns the list of known regions.

Returns:

  • (Array<String>)

    the list of known regions.


43
# File 'lib/xcodeproj/project/object/root_object.rb', line 43

attribute :known_regions, Array, ['en']

#main_groupPBXGroup

Returns the main group of the project. The one displayed by Xcode in the Project Navigator.

Returns:

  • (PBXGroup)

    the main group of the project. The one displayed by Xcode in the Project Navigator.


48
# File 'lib/xcodeproj/project/object/root_object.rb', line 48

has_one :main_group, PBXGroup

#product_ref_groupPBXGroup

Returns the group containing the references to products of the project.

Returns:

  • (PBXGroup)

    the group containing the references to products of the project.


53
# File 'lib/xcodeproj/project/object/root_object.rb', line 53

has_one :product_ref_group, PBXGroup

#project_dir_pathString

Returns the directory of the project.

Returns:

  • (String)

    the directory of the project.


57
# File 'lib/xcodeproj/project/object/root_object.rb', line 57

attribute :project_dir_path, String, ''

#project_referencesArray<ObjectDictionary> (readonly)

Returns any reference to other projects.

Returns:


65
66
67
# File 'lib/xcodeproj/project/object/root_object.rb', line 65

has_many_references_by_keys :project_references,
:project_ref   => PBXFileReference,
:product_group => PBXGroup

#project_rootString

Returns the root of the project.

Returns:

  • (String)

    the root of the project.


61
# File 'lib/xcodeproj/project/object/root_object.rb', line 61

attribute :project_root, String, ''

Instance Method Details

#targetsObjectList<PBXNativeTarget>

Returns a list of all the targets in the project.

Returns:


12
# File 'lib/xcodeproj/project/object/root_object.rb', line 12

has_many :targets, AbstractTarget