Once you have built your Xcode* project, follow these steps to run the executable:
Expand the Executables heading under Groups and Files.
Select the executable you want to run.
From the Action
menu on the toolbar, select the Start
command.

The output from the executable appears in the Run Log window.
You can build your Xcode project with the -shared-intel compiler option to link with the Intel dynamic libraries or with the -openmp or -parallel options, both of which link in libguide.dylib. If you do this, you will need to set the DYLD_LIBRARY_PATH environment variable in the Xcode environment.
To add the environment variable:
Expand the Executables heading under Groups and Files.
Select the executable produced from compiling with one of the compiler options mentioned above.
Click Info on the toolbar to display the Executable Info dialog box.
Under the Arguments
tab, add DYLD_LIBRARY_PATH as an environment variable.
Set the Value as the full path to the Intel compiler's /lib directory.
If you build your project with the -shared-intel, -openmp, or -parallel compiler option without setting DYLD_LIBRARY_PATH, a "library not found" error message results at runtime. Depending on your application, the error message may refer to a library other than the one noted in this example:
dyld: Library not loaded: libguide.dylib
Referenced
from: /Users/test/hello_world
Reason: image not found