class Xcodeproj::Project::Object::PBXBuildRule


This class represents a custom build rule of a Target.

def add_output_file(file, compiler_flags = '')

Returns:
  • (Void) -

Parameters:
  • compiler_flags (String) -- the compiler flags for the file.
  • file (PBXFileReference) -- the file to add.
def add_output_file(file, compiler_flags = '')
  (self.output_files ||= []) << file
  (self.output_files_compiler_flags ||= []) << compiler_flags
end

def ascii_plist_annotation

def ascii_plist_annotation
  " #{isa} "
end

def output_files_and_flags

Returns:
  • (Array<[PBXFileReference, String]>) -
def output_files_and_flags
  (output_files || []).zip(output_files_compiler_flags || [])
end