Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Preprocessor Output

I want to check the output of the preprocessor for some files. How can I view the preprocessor's output in Xcode?

like image 309
MacMark Avatar asked May 09 '11 12:05

MacMark


2 Answers

You can choose the "Show the Assistant editor" view in the top right set of buttons in the toolbar.

enter image description here

Then, at the top of the right-hand editor you can click the little Related Files button and then either choose Preprocess or Assembly.

enter image description here

You can see an example of both the preprocessor output and generated assembly code all side-by-side here:

enter image description here

like image 90
Steven Hepting Avatar answered Sep 21 '22 01:09

Steven Hepting


Xcode 4.1 features now "Preprocessor or Assembly Output". All be happy!

like image 42
MacMark Avatar answered Sep 20 '22 01:09

MacMark