Xcode Preprocessor Output

MacMark picture MacMark · May 9, 2011 · Viewed 13.3k times · Source

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

Answer

Steven Hepting picture Steven Hepting · Jul 1, 2011

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