Sha256: 9e0ce471221fd1bcf426494706768e67f0949d63939227a191688bb5728d8117

Contents?: true

Size: 867 Bytes

Versions: 9

Compression:

Stored size: 867 Bytes

Contents

require 'xcodeproject/node'

module XcodeProject
	class PBXProject < Node
		attr_reader :main_group
		attr_reader :product_ref_group
		attr_reader :project_dir_path
		attr_reader :compatibility_version
		attr_reader :development_region
		attr_reader :know_regions
		attr_reader :attributes

		def initialize (root, uuid, data)
			super(root, uuid, data)

			@main_group = root.object!(data['mainGroup'])
			@product_ref_group = root.object!(data['productRefGroup'])
			@project_dir_path = data['projectDirPath']
			@compatibility_version = data['compatibilityVersion']
			@development_region = data['developmentRegion']
			@know_regions = data['knownRegions']
			@attributes = data['attributes']
		end

		def targets
			data['targets'].map {|uuid| root.object!(uuid)}
		end

		def target (name)
			root.find_object('PBXNativeTarget', {'name' => name})
		end
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcodeproject-0.3.10 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.9 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.8 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.6 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.5 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.1 lib/xcodeproject/pbx_project.rb
xcodeproject-0.3.0 lib/xcodeproject/pbx_project.rb
xcodeproject-0.2.4 lib/xcodeproject/pbx_project.rb
xcodeproject-0.2.3 lib/xcodeproject/pbx_project.rb