How to prevent a Command Line Tool from exiting before asynchronous operation completes How to prevent a Command Line Tool from exiting before asynchronous operation completes xcode xcode