Class: Xcodeproj::Project::Object::PBXShellScriptBuildPhase

Inherits:
AbstractBuildPhase show all
Defined in:
lib/xcodeproj/project/object/build_phase.rb

Overview

Note:

This phase can appear multiple times in a target.

A phase responsible of running a shell script (aka ‘Run Script`).

Attributes collapse

Attributes inherited from AbstractBuildPhase

#build_action_mask, #comments, #run_only_for_deployment_postprocessing

Attributes inherited from AbstractObject

#isa, #project, #uuid

Method Summary

Methods inherited from AbstractBuildPhase

#add_file_reference, #ascii_plist_annotation, #build_file, #clear, #display_name, #file_display_names, #files, #files_references, #include?, #remove_build_file, #remove_file_reference

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

#input_file_list_pathsArray<String>

Returns an array of input file list paths of the script.

Examples:

"$(SRCROOT)/newInputFile.xcfilelist"

Returns:

  • (Array<String>)

    an array of input file list paths of the script.



258
# File 'lib/xcodeproj/project/object/build_phase.rb', line 258

attribute :input_file_list_paths, Array, []

#input_pathsArray<String>

Returns an array of the paths to pass to the script.

Examples:

"$(SRCROOT)/myfile"

Returns:

  • (Array<String>)

    an array of the paths to pass to the script.



251
# File 'lib/xcodeproj/project/object/build_phase.rb', line 251

attribute :input_paths, Array, []

#nameString

Returns the name of the build phase.

Returns:

  • (String)

    the name of the build phase.



244
# File 'lib/xcodeproj/project/object/build_phase.rb', line 244

attribute :name, String

#output_file_list_pathsArray<String>

Returns an array of output file list paths of the script.

Examples:

"$(SRCROOT)/newOutputFile.xcfilelist"

Returns:

  • (Array<String>)

    an array of output file list paths of the script.



272
# File 'lib/xcodeproj/project/object/build_phase.rb', line 272

attribute :output_file_list_paths, Array, []

#output_pathsArray<String>

Returns an array of output paths of the script.

Examples:

"$(DERIVED_FILE_DIR)/myfile"

Returns:

  • (Array<String>)

    an array of output paths of the script.



265
# File 'lib/xcodeproj/project/object/build_phase.rb', line 265

attribute :output_paths, Array, []

#shell_pathString

Note:

Defaults to ‘/bin/sh`.

Returns the path to the script interpreter.

Returns:

  • (String)

    the path to the script interpreter.



278
# File 'lib/xcodeproj/project/object/build_phase.rb', line 278

attribute :shell_path, String, '/bin/sh'

#shell_scriptString

Note:

Defaults to a comment string.

Returns the actual script to perform.

Returns:

  • (String)

    the actual script to perform.



284
# File 'lib/xcodeproj/project/object/build_phase.rb', line 284

attribute :shell_script, String, "# Type a script or drag a script file from your workspace to insert its path.\n"

#show_env_vars_in_logString

Returns whether or not the ENV variables should be shown in the build log.

Returns:

  • (String)

    whether or not the ENV variables should be shown in the build log.



289
# File 'lib/xcodeproj/project/object/build_phase.rb', line 289

attribute :show_env_vars_in_log, String