Xcode with fortran


I'm trying to compile some fortran files in Xcode, using a makefile made by me. The problem is that Xcode can't find gfortran compiler. I have it, because if I go to console and try to compile from there it works well.

Do you know how to add fortran compiler to Xcode.

Thanks in advance

Best Solution

You should use the gfortran compiler (binaries for Mac available here) along with the XCode gfortran plugin, available there.