I'm having this problem which was discussed in other topics, but I think I'm not following the steps to solve it correctly.
Problem when compiling in Textmate:
This command requires ‘kpsewhich’ which wasn’t found on your system.
The following locations were searched:
• /usr/bin
• /bin
• /usr/sbin
• /sbin
• ~/Library/Application Support/TextMate/Managed/Bundles/Bundle Support.tmbundle/Support/shared/bin
I went to the terminal and wrote:
find / -name kpsewhich* -print
With results:
/usr/local/texlive/2014/bin/universal-darwin/kpsewhich
/usr/local/texlive/2014/bin/x86_64-darwin/kpsewhich
/usr/local/texlive/2014/texmf-dist/doc/man/man1/kpsewhich.1
/usr/local/texlive/2014/texmf-dist/doc/man/man1/kpsewhich.man1.pdf
/usr/local/texlive/2015/bin/universal-darwin/kpsewhich
/usr/local/texlive/2015/bin/x86_64-darwin/kpsewhich
/usr/local/texlive/2015/texmf-dist/doc/man/man1/kpsewhich.1
/usr/local/texlive/2015/texmf-dist/doc/man/man1/kpsewhich.man1.pdf
How do I fix this?

export PATH=/Library/TeX/texbin:/opt/local/bin:/opt/local/sbin:$PATHto the file~/.profile. (If.profiledoesn't exist yet in your home directory, just create the file.) Then, log out and log back in to fully update the PATH variable. – Mico Feb 12 '16 at 14:37