require 'dsym_uuid_extractor/version' require 'dsym_uuid_extractor/macho_reader' module DsymUuidExtractor def self.run(file_path) results = {} reader = if MachOBinaryReader.is_binary_file?(file_path) MachOBinaryReader.new(file_path: file_path) else MachOFileReader.new(file_path: file_path) end reader.each_file do |file| file.extract_info results[file.uuid] = file.arch end results end end