lib/xcres/analyzer/strings_analyzer.rb
def absolute_project_file_path(file_path)
      source_root = (project.path + '..').realpath
      if file_path.to_s.include?('$')
        Pathname(file_path.to_s.gsub(/\$[({]?SRCROOT[)}]?/, source_root.to_s))
      else
        source_root + file_path
      end
    end
# Calculate the absolute path for a file path given relative to the
# project / its `$SRCROOT`.
#
# We need either absolute paths or relative paths to our current location.
# Xcodeproj provides this for +PBXFileReference+, but this doesn't work
# for file references in build settings.
#
# @param  [String|Pathname] file_path
#         the path relative to the project.
#
# @return [Pathname]
#
Calculate the absolute path for a file path given relative to the
project / its `$SRCROOT`.

We need either absolute paths or relative paths to our current location.
Xcodeproj provides this for +PBXFileReference+, but this doesn't work
for file references in build settings.
Calculate the absolute path for a file path given relative to the project / its ` $SRCROOT ` . We need either absolute paths or relative paths to our current location . Xcodeproj provides this for + PBXFileReference + but this doesn ' t work for file references in build settings .
def absolute_project_file_path(file_path)
      source_root = (project.path + '..').realpath
      if file_path.to_s.include?('$')
        Pathname(file_path.to_s.gsub(/\$[({]?SRCROOT[)}]?/, source_root.to_s))
      else
        source_root + file_path
      end
    end
def absolute_project_file_path ( file_path ) source_root = ( project . path + '..' ) . realpath if file_path . to_s . include? ( '$' ) Pathname ( file_path . to_s . gsub ( / \$ [({]?SRCROOT[)}]? / , source_root . to_s ) ) else source_root + file_path end end
Calculate the absolute path for a file path given relative to the
project / its `$SRCROOT`.
Calculate the absolute path for a file path given relative to the project / its ` $SRCROOT ` .
None
Pathname
file_path
file_path the path relative to the project.
file_path the path relative to the project .