Scenario:
I have TargetA
, which is an iOS application. This app uses a static library, compiled by TargetB
.
Obviously, TargetB
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.