Requirements:
-
Install PyCharmTeXiFy plugin
https://github.com/Hannah-Sten/TeXiFy-IDEA -
Install MiKTeX in Mac OS https://miktex.org/howto/install-miktex-mac
-
Run MiKTeX in admin console and system-wide to have less problems
-
When choosing compiler for LaTeX, choose Latexmk, as pdflatex has problems with defining references from main.bib