Method: FastlaneCore::ProvisioningProfile.parse

Defined in:
fastlane_core/lib/fastlane_core/provisioning_profile.rb

.parse(path, keychain_path = nil) ⇒ Hash

Returns The hash with the data of the provisioning profile.

Examples:

{"AppIDName"=>"My App Name",
 "ApplicationIdentifierPrefix"=>["5A997XSAAA"],
 "CreationDate"=>#<DateTime: 2015-05-24T20:38:03+00:00 ((2457167j,74283s,0n),+0s,2299161j)>,
 "DeveloperCertificates"=>[#<StringIO:0x007f944b9666f8>],
 "Entitlements"=>
  {"keychain-access-groups"=>["5A997XSAAA.*"],
   "get-task-allow"=>false,
   "application-identifier"=>"5A997XAAA.net.sunapps.192",
   "com.apple.developer.team-identifier"=>"5A997XAAAA",
   "aps-environment"=>"production",
   "beta-reports-active"=>true},
 "ExpirationDate"=>#<DateTime: 2015-11-25T22:45:50+00:00 ((2457352j,81950s,0n),+0s,2299161j)>,
 "Name"=>"net.sunapps.192 AppStore",
 "TeamIdentifier"=>["5A997XSAAA"],
 "TeamName"=>"SunApps GmbH",
 "TimeToLive"=>185,
 "UUID"=>"1752e382-53bd-4910-a393-aaa7de0005ad",
 "Version"=>1}

Returns:

  • (Hash)

    The hash with the data of the provisioning profile



26
27
28
29
30
31
32
33
34
35
# File 'fastlane_core/lib/fastlane_core/provisioning_profile.rb', line 26

def parse(path, keychain_path = nil)
  require 'plist'

  plist = Plist.parse_xml(decode(path, keychain_path))
  if (plist || []).count > 5
    plist
  else
    UI.crash!("Error parsing provisioning profile at path '#{path}'")
  end
end