Is there a way to get pre-processed C/Objective-C code? I have some files I acquired and would like to see the code produced by some #defines.
4 Answers
From within Xcode:
- Xcode 3: Select the file, then Build → Preprocess.
- Xcode 4: Select the file, then Product → Generate Output → Generate Preprocessed File.
1 Comment
pasawaya
Just a note - When you generate the preprocessed file this way, there is a whole lot of other code from the files that were #imported. The file you really want to see is at the very bottom of the output.