how to make xcode run a script before dependencies?

后端 未结 1 1971
南笙
南笙 2020-12-18 20:15

Scenario:

I have TargetA, which is an iOS application. This app uses a static library, compiled by TargetB. Obviously, TargetB

相关标签:
1条回答
  • 2020-12-18 20:34

    Running the script as a pre-action build step inside the scheme is the best way to accomplish what you want. A common use of this approach is to adjust the project's build number base on the source control state (example). As far as capturing the script output, unfortunately the only thing you can do is redirect stdout for the script to a log file. That log file could be part of your project, so it would be easy to view from Xcode.

    0 讨论(0)
提交回复
热议问题