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

前端 未结 6 751
无人共我
无人共我 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:14

    Every technique mentioned so far is an overkill. Reproducing steve kim's comment for visibility:

    In the build phases tab, simply drag the "Run Script" step to a higher location (e.g. before "Compile Sources").

    Tested on XCode 6

提交回复
热议问题