lib/app_info/parser/ipa/mobile_provision.rb in app-info-1.0.2 vs lib/app_info/parser/ipa/mobile_provision.rb in app-info-1.0.3

- old
+ new

@@ -57,9 +57,11 @@ def empty? mobileprovision.nil? end def mobileprovision + return @mobileprovision = nil if @path.nil? or @path.empty? or !File.exist?(@path) + data = `security cms -D -i "#{@path}"` @mobileprovision = CFPropertyList.native_types(CFPropertyList::List.new(data: data).value) rescue CFFormatError @mobileprovision = nil end