Hi, I've seen the FAQ "How do I use Open MPI wrapper compilers in Xcode", but it's only for MPICC. I am using MPIF90, so I did the same, but changing MPICC for MPIF90, and also the path, but it did not work.

Building target “fortran” of project “fortran” with configuration “Debug”

Checking Dependencies
Invalid value 'MPIF90' for GCC_VERSION

The file "MPIF90.cpcompspec" looks like this:

  1 /**
  2         Xcode Coompiler Specification for MPIF90
  4 */
  6 {   Type = Compiler;
  7     Identifier = com.apple.compilers.mpif90;
  8     BasedOn = com.apple.compilers.gcc.4_0;
  9     Name = "MPIF90";
 10     Version = "Default";
 11     Description = "MPI GNU C/C++ Compiler 4.0";
 12     ExecPath = "/usr/local/bin/mpif90";      // This gets converted to the g++ variant automatically
 13     PrecompStyle = pch;
 14 }

and is located in "/Developer/Library/Xcode/Plug-ins"

and when I do mpif90 -v on terminal it works well:

Using built-in specs.
Target: i386-apple-darwin8.10.1
Configured with: /tmp/gfortran-20090321/ibin/../gcc/configure --prefix=/usr/local/gfortran --enable-languages=c,fortran --with-gmp=/tmp/gfortran-20090321/gfortran_libs --enable-bootstrap
Thread model: posix
gcc version 4.4.0 20090321 (experimental) [trunk revision 144983] (GCC) 

Any idea??