lib/app_info/parser/ipa/mobile_provision.rb in app-info-1.0.3 vs lib/app_info/parser/ipa/mobile_provision.rb in app-info-1.0.4
- old
+ new
@@ -59,10 +59,10 @@
end
def mobileprovision
return @mobileprovision = nil if @path.nil? or @path.empty? or !File.exist?(@path)
- data = `security cms -D -i "#{@path}"`
+ data = `security cms -D -i "#{@path}" 2> /dev/null`
@mobileprovision = CFPropertyList.native_types(CFPropertyList::List.new(data: data).value)
rescue CFFormatError
@mobileprovision = nil
end
end