class XcodeProject::PBXNativeTarget

Attributes

dependencies[R]
name[R]
product_name[R]
product_reference[R]
product_type[R]

Public Class Methods

new(root, uuid, data) click to toggle source
Calls superclass method XcodeProject::Node::new
# File lib/xcodeproject/pbx_native_target.rb, line 36
def initialize (root, uuid, data)
        super(root, uuid, data)

        @name = data['name']
        @product_name = data['productName']
        @product_reference = data['productReference']
        @product_type = data['productType']
        @dependencies = data['dependencies']
end

Public Instance Methods

add_source(file) click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 50
def add_source (file)
        sources_build_phase.add_file(file)
end
build_configurations_list() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 66
def build_configurations_list
        root.object!(data['buildConfigurationList'])
end
build_phases() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 70
def build_phases
        data['buildPhases'].map {|uuid| root.object!(uuid) }
end
config(name) click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 62
def config (name)
        build_configurations_list.build_configuration(name)
end
configs() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 58
def configs
        build_configurations_list.build_configurations
end
doctor() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 90
def doctor
        build_phases.each {|phase| phase.doctor }
end
frameworks_build_phase() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 86
def frameworks_build_phase
        build_phases.select {|obj| obj.is_a?(PBXFrameworksBuildPhase) }.first
end
headers_build_phase() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 78
def headers_build_phase
        build_phases.select {|obj| obj.is_a?(PBXHeadersBuildPhase) }.first
end
remove_source(file) click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 54
def remove_source (file)
        sources_build_phase.remove_file(file)
end
resources_build_phase() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 82
def resources_build_phase
        build_phases.select {|obj| obj.is_a?(PBXResourcesBuildPhase) }.first
end
sources() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 46
def sources
        sources_build_phase.files
end
sources_build_phase() click to toggle source
# File lib/xcodeproject/pbx_native_target.rb, line 74
def sources_build_phase
        build_phases.select {|obj| obj.is_a?(PBXSourcesBuildPhase) }.first
end