Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate Preprocessed File in Xcode

Tags:

xcode

Is there any possibility to see preprocessed files before they are compiled in Xcode? In Visual Studio has the option "Generate Preprocessed File" (options->C/C++->preprocessor).

like image 949
Mircea Ispas Avatar asked Jul 16 '10 15:07

Mircea Ispas


3 Answers

In Xcode 5:

  1. Select an implementation file.
  2. From the menu: Product | Perform Action | Preprocess "YourClassName.m"
like image 143
Joe Hankin Avatar answered Nov 24 '22 16:11

Joe Hankin


Right click on a file and choose "Preprocess"...

like image 23
Macmade Avatar answered Nov 24 '22 17:11

Macmade


In Xcode 4:

  1. Select an implementation file
  2. From the menu: Product | Generate Output | Generate Preprocessed File

Hope this helps.

like image 42
Scott McKenzie Avatar answered Nov 24 '22 17:11

Scott McKenzie