Thursday, July 28, 2016

Update Xcode build progress bar when using run script

Leave a Comment

In Xcode you can specify custom scripts to build your applications. I have a project which makes extensive use of these. For instance, one target builds the simulator versions (both 32bit and 64bit) and the ARM version as well as documentation and then bundles up the generated static library into a framework along with some other files

Running the above code can take a couple of minutes. Normally when you build, Xcode has a progress bar at the top of the screen. When you use these scripts it fills in a tiny amount and then stops there until your script completes.

It would be nice if there was a way to tell Xcode to update this progress bar? It doesn't have to be perfect, just a way of giving some feedback that something is happening and that the build process hasn't stalled.

Thanks!

1 Answers

Answers 1

It looks like you can use Bash in your custom build script. So why not do something like in the example linked, wherein for each build target you do

echo "building target name blare" 

In fact, if you really want a progress bar, why not just use Bash to make one? See an example here.

enter image description here

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment