class Xcodeproj::Project::Object::PBXBuildRule
This class represents a custom build rule of a Target.
Public Instance Methods
add_output_file(file, compiler_flags = '')
click to toggle source
Adds an output file with the specified compiler flags.
@param [PBXFileReference] file the file to add.
@param [String] compiler_flags the compiler flags for the file.
@return [Void]
# File lib/xcodeproj/project/object/build_rule.rb, line 90 def add_output_file(file, compiler_flags = '') (self.output_files ||= []) << file (self.output_files_compiler_flags ||= []) << compiler_flags end
ascii_plist_annotation()
click to toggle source
# File lib/xcodeproj/project/object/build_rule.rb, line 103 def ascii_plist_annotation " #{isa} " end
output_files_and_flags()
click to toggle source
@return [Array<[PBXFileReference, String]>]
An array containing tuples of output files and their compiler flags.
# File lib/xcodeproj/project/object/build_rule.rb, line 99 def output_files_and_flags (output_files || []).zip(output_files_compiler_flags || []) end