Class: Xcodeproj::Project::Object::PBXBuildRule

Inherits:
AbstractObject show all
Defined in:
lib/xcodeproj/project/object/build_rule.rb

Overview

This class represents a custom build rule of a Target.

Instance Attribute Summary

Attributes inherited from AbstractObject

#isa, #project, #uuid

Attributes collapse

Methods inherited from AbstractObject

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

Instance Method Details

#compiler_specString

Returns a string representing what compiler to use.

Examples:

`com.apple.compilers.proxy.script`.

Returns:

  • (String)

    a string representing what compiler to use.



18
# File 'lib/xcodeproj/project/object/build_rule.rb', line 18

attribute :compiler_spec, String

#file_patternsString

Returns the pattern of the files that should be processed by this rule. This attribute is an alternative to to ‘file_type`.

Examples:

`*.css`.

Returns:

  • (String)

    the pattern of the files that should be processed by this rule. This attribute is an alternative to to ‘file_type`.



35
# File 'lib/xcodeproj/project/object/build_rule.rb', line 35

attribute :file_patterns, String

#file_typeString

Returns the type of the files that should be processed by this rule.

Examples:

`pattern.proxy`.

Returns:

  • (String)

    the type of the files that should be processed by this rule.



26
# File 'lib/xcodeproj/project/object/build_rule.rb', line 26

attribute :file_type, String

#is_editableString

Returns whether the rule is editable.

Examples:

`1`.

Returns:

  • (String)

    whether the rule is editable.



42
# File 'lib/xcodeproj/project/object/build_rule.rb', line 42

attribute :is_editable, String, '1'

#nameString

Returns the name of the rule.

Returns:

  • (String)

    the name of the rule.



11
# File 'lib/xcodeproj/project/object/build_rule.rb', line 11

attribute :name, String

#output_filesObjectList<PBXFileReference>

Returns the file references for the output files.

Returns:



47
# File 'lib/xcodeproj/project/object/build_rule.rb', line 47

attribute :output_files, Array

#scriptString

Note:

This attribute is present if the ##compiler_spec is ‘com.apple.compilers.proxy.script`

Returns the content of the script to use for the build rule.

Returns:

  • (String)

    the content of the script to use for the build rule.



54
# File 'lib/xcodeproj/project/object/build_rule.rb', line 54

attribute :script, String