Method: Xcode::BuildPhase#file

Defined in:
lib/xcode/build_phase.rb

#file(name) ⇒ BuildFile

Return the BuildFile given the file name.

Parameters:

  • name (String)

    of the FileReference that is being built.

Returns:

  • (BuildFile)

    the BuildFile that links to the file specified with the name.



79
80
81
# File 'lib/xcode/build_phase.rb', line 79

def file(name)
  files.find {|file| file.file_ref.name == name or file.file_ref.path == name  }
end