Skip to content

Instantly share code, notes, and snippets.

@guange2015
Created October 18, 2012 02:50
Show Gist options
  • Select an option

  • Save guange2015/3909604 to your computer and use it in GitHub Desktop.

Select an option

Save guange2015/3909604 to your computer and use it in GitHub Desktop.
zip-plist-reader
require 'zip/zip'
require 'plist4r'
Zip::ZipFile.open('/tmp/weipass.ipa',Zip::ZipFile::CREATE) { |zipfile|
plist_string = zipfile.read("Payload/MicroPass.app/Info.plist")
p = Plist4r::Plist.new({ :from_string => plist_string })
puts p["CFBundleDisplayName"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment