OCRmyPDF - adds an OCR text layer to scanned PDF files, allowing them to be searched or copy-pasted
macOS (Homebrew) - brew install ocrmypdf
…will include the English, French, German and Spanish language packs. If you need other languages you can optionally install them all:brew install tesseract-lang