Method: Xcode::BuildPhase#build_file

Defined in:
lib/xcode/build_phase.rb

#build_file(name) ⇒ FileReference

Note:

this is the FileReference, the file being built and not the instance of the BuildFile.

Find the first file that has the name or path that matches the specified parameter.

Parameters:

  • name (String)

    the name or the path of the file.

Returns:

  • (FileReference)

    the file referenced that matches the name or path; nil if no file is found.

See Also:



108
109
110
# File 'lib/xcode/build_phase.rb', line 108

def build_file(name)
  build_files.find {|file| file.name == name or file.path == name }
end