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)"



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

attribute :build_arguments_string, String

#build_tool_pathString

Returns e.g "/usr/bin/make".

Returns:

  • (String)

    e.g "/usr/bin/make"



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

attribute :build_tool_path, String

#build_working_directoryString

Returns e.g "Dir".

Returns:

  • (String)

    e.g "Dir"



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

attribute :build_working_directory, String

#pass_build_settings_in_environmentString

Returns e.g "1".

Returns:

  • (String)

    e.g "1"



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

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:



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

has_many :build_phases, AbstractBuildPhase