diff --git a/lib/xcov-core.rb b/lib/xcov-core.rb
index <HASH>..<HASH> 100644
--- a/lib/xcov-core.rb
+++ b/lib/xcov-core.rb
@@ -13,7 +13,7 @@ module Xcov
 
       def self.parse(file)
         report_output = Tempfile.new("report.json")
-        command = "#{ENV['XCOV_CORE_LIBRARY_PATH']} -s #{file} -o #{report_output.path.shellescape}"
+        command = "#{ENV['XCOV_CORE_LIBRARY_PATH']} -s #{file.shellescape} -o #{report_output.path.shellescape}"
         description = [{ prefix: "Parsing .xccoverage file: " }]
         execute_command(command, description)
         output_file = File.read(report_output.path)
escaped .xcoverage file path