Method: Xcodeproj::Project::Object::PBXBuildRule#add_output_file

Defined in:
lib/xcodeproj/project/object/build_rule.rb

#add_output_file(file, compiler_flags = '') ⇒ Void

Adds an output file with the specified compiler flags.

Parameters:

  • file (PBXFileReference)

    the file to add.

  • compiler_flags (String) (defaults to: '')

    the compiler flags for the file.

Returns:

  • (Void)


90
91
92
93
# 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