4

How, really, would you mod Xcode to include preprocessing on all scripts - in modern Xcode (ie 9+)?

Obviously this was trivial in the Old Days.

Would one basically be using a custom build rule ?

.

enter image description here

.

Or perhaps, would you need basically "A Mac App" which runs (how?) before the compile?

3
  • Could you clear your question. What do you concretely want? Commented Oct 5, 2017 at 11:27
  • "What do you do to Xcode to include preprocessing on all scripts" Commented Oct 5, 2017 at 11:40
  • You can use shellscript and let it run at the time of installation of the app Commented Oct 6, 2017 at 23:21

1 Answer 1

1

It depends on what you want the preprocessor to do. Assuming that the output files are regular .c, .m, .cpp etc. files that the compiler can handle correctly then you could simply add a new 'Run Script' build phase to run your pre-processor. It has access to the Xcode environment variables so should be able to run effectively. As Nik Kit said though, it depends on exactly what you want to achieve.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.