Module: Pliney

Defined in:
lib/pliney/macho.rb,
lib/pliney.rb,
lib/pliney/ipa.rb,
lib/pliney/util.rb,
lib/pliney/version.rb,
lib/pliney/io_helpers.rb,
lib/pliney/apple_code_signature.rb,
lib/pliney/provisioning_profile.rb

Overview

Note this implementation only works with little-endian mach-o binaries such as ARM and X86. Older PPC mach-o files are big-endian. Support could be pretty easily added just by conditionally swapping in the IOHelper addons for read_uintXXbe instead of read_uintXXle where appropriate

Defined Under Namespace

Modules: AppleCodeSignature, IOHelpers, MachO Classes: EntitlementsMask, IPA, ProvisioningProfile

Constant Summary collapse

VERSION =
"0.0.6"

Class Method Summary collapse

Class Method Details

.parse_plist(rawdat) ⇒ Object



6
7
8
9
# File 'lib/pliney/util.rb', line 6

def self.parse_plist(rawdat)
    plist = CFPropertyList::List.new(data: rawdat)
    return CFPropertyList.native_types(plist.value)
end

.write_plist(data, outpath, format = CFPropertyList::List::FORMAT_XML) ⇒ Object



11
12
13
14
15
# File 'lib/pliney/util.rb', line 11

def self.write_plist(data, outpath, format = CFPropertyList::List::FORMAT_XML)
    plist = CFPropertyList::List.new
    plist.value = CFPropertyList.guess(data)
    plist.save(outpath, format)
end