PostProcessBuildPlayer timing

How is the PostProcessBuildPlayer launched in Unity 3.0 when doing an iPhone build?

I have a simple PostProcessBuildPlayer script:

#!/usr/bin/perl

`osascript -e \'tell application \"Finder\" to display dialog \"Here\" buttons \"OK\"\'`;

which displays a dialog box and waits for the user to press OK.

When I build for Web, it gets as far as the “Postprocessing Player” step, then this dialogue appears and it waits until I press the button before continuing.

When I build for iPhone however, it gets the the “Postprocessing Player” step, pauses for a moment and then moves on, launching Xcode. Sometime in parallel with this process my script is run and the dialogue will appear, but usually after Xcode has already started.

This is an issue when the post-processing changes Xcode files after Xcode has started compiling. In other (more purposeful) scripts, this is indeed a problem for me. Why isn’t post-processing done synchronously, as it is for Web builds?

Hello,
please submit a bug report. Thanks!