class Xcodeproj::Workspace::FileReference

def absolute_path(workspace_dir_path)

Returns:
  • (String) - The absolute path to the project.

Parameters:
  • workspace_dir_path (#to_s) --
def absolute_path(workspace_dir_path)
  workspace_dir_path = workspace_dir_path.to_s
  case type
  when 'group', 'container', 'self'
    File.expand_path(File.join(workspace_dir_path, path))
  when 'absolute'
    File.expand_path(path)
  when 'developer'
    raise "Developer workspace file reference type is not yet supported (#{path})"
  else
    raise "Unsupported workspace file reference type `#{type}`"
  end
end