To create a new Xcode project:
Launch the Xcode application. typically found in the Developer > Applications folder.
Choose New Project from the File menu.
When the
New Project Assistant window appears, select Command
Line Utility and choose a template. Click Choose.

If you choose Standard Tool as shown above, you will have to delete the C main program that is automatically created.
Name your project and specify an alternate directory if you do not want to use the default directory. Click Save. This creates the named project directory, with an .xcodeproj extension.
In the Xcode* integrated development environment, every project has a Groups & Files list where your project source files, targets, and executables are stored. For information on building targets, see Building the Target.
To add a file to your Xcode project, choose Add New File or Add Existing Files from the Action pop-up menu in the toolbar. (The Existing Files option may not be available, depending on which group in the Groups & Files list is selected.)
To add a new Fortran file, choose one of the Fortran User Templates, either Fortran Free Format File or Fortran Fixed Format File. These are listed under BSD.

Alternatively, you can choose New Empty File from the File menu and provide an appropriate Fortran file extension when you specify the file name.