lib/app_info/dsym.rb in app-info-2.6.3 vs lib/app_info/dsym.rb in app-info-2.6.4

- old
+ new

@@ -93,14 +93,16 @@ dsym_dir = nil @contents = Util.unarchive(@file, path: 'dsym') do |path, zip_file| zip_file.each do |f| unless dsym_dir dsym_dir = f.name - dsym_dir = dsym_dir.split('/')[0] # fix filename is xxx.app.dSYM/Contents + # fix filename is xxx.app.dSYM/Contents + dsym_dir = dsym_dir.split('/')[0] if dsym_dir.include?('/') end f_path = File.join(path, f.name) - zip_file.extract(f, f_path) unless File.exist?(f_path) + FileUtils.mkdir_p(File.dirname(f_path)) + f.extract(f_path) unless File.exist?(f_path) end end @contents = File.join(@contents, dsym_dir) end