def parse_errors
      errors = @xcodebuild_json["errors"].map {|x| "`#{x}`"}
      errors += @xcodebuild_json["compile_errors"].map {|x| "`[#{x["file_path"].split("/").last}] #{x["reason"]}`"}
      errors += @xcodebuild_json["file_missing_errors"].map {|x| "`[#{x["file_path"].split("/").last}] #{x["reason"]}`"}
      errors += @xcodebuild_json["undefined_symbols_errors"].map {|x| "`#{x["message"]}`"}
      errors += @xcodebuild_json["duplicate_symbols_errors"].map {|x| "`#{x["message"]}`"}
      if errors.count > 0 && post_messages
        error_string = errors.count == 1 ? "error" : "errors"
        message = Array.new
        message.push (@build_title) unless @build_title.nil?
        message.push("Build failed with **#{errors.count}** #{error_string} 🚨")
        fail(message.reject(&:empty?).join(" "))
        errors.each do |error|
          fail(error)
        end
      end
      @error_count = errors.count
      return @error_count
    end
def parse_errors
      errors = @xcodebuild_json["errors"].map {|x| "`#{x}`"}
      errors += @xcodebuild_json["compile_errors"].map {|x| "`[#{x["file_path"].split("/").last}] #{x["reason"]}`"}
      errors += @xcodebuild_json["file_missing_errors"].map {|x| "`[#{x["file_path"].split("/").last}] #{x["reason"]}`"}
      errors += @xcodebuild_json["undefined_symbols_errors"].map {|x| "`#{x["message"]}`"}
      errors += @xcodebuild_json["duplicate_symbols_errors"].map {|x| "`#{x["message"]}`"}
      if errors.count > 0 && post_messages
        error_string = errors.count == 1 ? "error" : "errors"
        message = Array.new
        message.push (@build_title) unless @build_title.nil?
        message.push("Build failed with **#{errors.count}** #{error_string} 🚨")
        fail(message.reject(&:empty?).join(" "))
        errors.each do |error|
          fail(error)
        end
      end
      @error_count = errors.count
      return @error_count
    end
Parses and expose eventual errors.
 @return   [error_count]