Xcode: Running a script before every build that modifies source code directly

前端 未结 6 753
无人共我
无人共我 2020-12-04 08:26

What I did:

I have a script that

  1. Read some configuration files to generate source code snippets
  2. Find relevant Objective-C source files and
6条回答
  •  感动是毒
    2020-12-04 09:12

    As of Xcode 4, it looks like if you add the generated files to the output section of the build phase, it will respect that setting, and not generate the ... has been modified since the precompiled header was built error messages.

    This is a good option if your script is only generating a handful of files each time.

提交回复
热议问题