Trigger command after dev rebuild

Is there any way to hook into the Extension re-packaged event? I'm porting an extension to Safari and would like to trigger xcodebuild automatically when the extension has finished rebuilding.
Was this page helpful?