Intel® Fortran Compiler 18.0 Developer Guide and Reference
The following topic applies to
Xcode*.
A single project can contain multiple targets. The active target determines how your project is built. This topic describes how to build the target using the Xcode* IDE and documents the build steps using the xcodebuild command line utility.
You can change the compilation order of the files in an Xcode* target. This may be necessary to compile Fortran source files that define modules (producing .MOD files). These can be used by Fortran sources that use the modules. To re-order the files listed under a target's Compile Sources, click a source file and drag it before, or after other compilations.
You can use the xcodebuild utility to build a target. This utility uses the Xcode* project settings to build target projects from the command line. If you have previously configured your Xcode* project to build with the Intel compiler, xcodebuild invokes it from the command line.
To build from the command line:
xcodebuild -project HelloWorld.xcodeproj -target HelloWorld -configuration Debug
./build/Debug/HelloWorld
For more information, refer to the xcodebuild man page.
Before building a 64-bit executable from within Xcode*, you may need to edit the executable's target architecture. To change the Architectures setting:
You can build universal binaries, which operate on both IA-32 and Intel® 64 architectures. If you select more than one architecture in your build configuration, a universal binary containing the executables for all the selected architectures is created.
For example, for the Release configuration, if you set the architecture property to the value Standard (32/64-bit Intel), then binaries for both the IA-32 and Intel® 64 architectures are created and put into the executable.