Class: Xcodeproj::Project::Object::PBXLegacyTarget

Inherits:
AbstractTarget show all
Defined in:
lib/xcodeproj/project/object/native_target.rb

Overview

Represents a legacy target which uses an external build tool.

Apparently it can't have any build phase but the attribute can be present.

Attributes collapse

Attributes inherited from AbstractTarget

#build_configuration_list, #comments, #name, #product_name

Attributes inherited from AbstractObject

#isa, #project, #uuid

Attributes collapse

Methods inherited from AbstractTarget

#add_build_configuration, #add_dependency, #add_system_framework, #add_system_library, #add_system_library_tbd, #build_configurations, #build_settings, #common_resolved_build_setting, #copy_files_build_phases, #dependencies, #dependency_for_target, #deployment_target, #deployment_target=, #frameworks_build_phases, #new_copy_files_build_phase, #new_shell_script_build_phase, #platform_name, #pretty_print, #resolved_build_setting, #sdk, #sdk_version, #shell_script_build_phases

Methods inherited from AbstractObject

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

Instance Attribute Details

#build_arguments_stringString

Returns e.g “$(ACTION)”.

Returns:

  • (String)

    e.g “$(ACTION)”


686
# File 'lib/xcodeproj/project/object/native_target.rb', line 686

attribute :build_arguments_string, String

#build_tool_pathString

Returns e.g “/usr/bin/make”.

Returns:

  • (String)

    e.g “/usr/bin/make”


694
# File 'lib/xcodeproj/project/object/native_target.rb', line 694

attribute :build_tool_path, String

#build_working_directoryString

Returns e.g “Dir”.

Returns:

  • (String)

    e.g “Dir”


682
# File 'lib/xcodeproj/project/object/native_target.rb', line 682

attribute :build_working_directory, String

#pass_build_settings_in_environmentString

Returns e.g “1”.

Returns:

  • (String)

    e.g “1”


690
# File 'lib/xcodeproj/project/object/native_target.rb', line 690

attribute :pass_build_settings_in_environment, String

Instance Method Details

#build_phasesPBXBuildRule

Note:

Apparently only PBXCopyFilesBuildPhase and PBXShellScriptBuildPhase can appear multiple times in a target.

Returns the build phases of the target.

Returns:


702
# File 'lib/xcodeproj/project/object/native_target.rb', line 702

has_many :build_phases, AbstractBuildPhase