Generate pre-processed file in Xcode

Is it possible to see pre-processed files before compiling them in Xcode? In Visual Studio there is an option "Generate pre-processed file" (options-> C / C ++ → preprocessor).

+7
xcode
source share
3 answers

Right-click the file and select "Preprocess" ...

+3
source share

In Xcode 5:

  • Select an implementation file.
  • From the menu: Product | Perform action | Preprocess "YourClassName.m"
+18
source share

In Xcode 4:

  • Select implementation file
  • From the menu: Product | Create Exit | Creating a pre-processed file

Hope this helps.

+2
source share

All Articles