How can I “compile” Objective-C Code to (only) C-Code?
There is a way to preprocess Objective-C in Xcode (Product -> Generate Output -> Generate Preprocessed File), but this is not what I’m looking for…
Thanks…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
clang (the compiler front-end used by Xcode nowadays) has a
-rewrite-objcoption built-in, which allows you to generate C++ code based on Objective-C (or Objective-C++) code.Just don’t ask me how to combine that with Xcode.