C, Objective-C preprocessor output
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 Solutions Collect From Internet About “C, Objective-C preprocessor output”
On the command line,
gcc -E foo.m will show you the preprocessed output (just as it does for normal C/C++ files). Of course, this will also expand any
#import statements you may have in your code.
From within Xcode:
- Xcode 3: Select the file, then Build → Preprocess.
- Xcode 4: Select the file, then Product → Generate Output → Generate Preprocessed File.
-E command-line argument to
clang. This is documented as: “Preprocess only; do not compile, assemble or link” and indeed it outputs the preprocessed version to
In Xcode 5: Select the .m file, then Product -> Perform Action -> Preprocess “.m”
- Swift and JSON parsing only an object not an array
- Documentation-generator for Objective-C?
- How to change space between cells in UICollectionView?
- What is the purpose of willSet and didSet in Swift?
- Drawing Circular Gradient
- Autolayout programmatically doesn't work
- Jenkins vs. Xcode plugin – codesign troubles
- sqlite3_step(statement) == SQLITE_DONE is always false
- Record audio file and save locally on iPhone
- Constraining proportions of GUI elements in Spritekit game
- How to increase badge number when application is in background
- Submit multiple iOS apps with same code base
- XCode Convert to ARC, Create universal binary fails with error of “can't figure out the architecture type of”
- How can I create a UIColor from a hex string?
- UIView duplicate