47
48
49
50
51
52
53
54
55
56
|
# File 'fastlane_core/lib/fastlane_core/provisioning_profile.rb', line 47
def bundle_id(path, keychain_path = nil)
profile = parse(path, keychain_path)
app_id_prefix = profile["ApplicationIdentifierPrefix"].first
entitlements = profile["Entitlements"]
app_identifier = entitlements["application-identifier"] || entitlements["com.apple.application-identifier"]
bundle_id = app_identifier.gsub("#{app_id_prefix}.", "")
bundle_id
rescue
UI.error("Unable to extract the Bundle Id from the provided provisioning profile '#{path}'.")
end
|