diff --git a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py index be93ced17d..4603bcd1c2 100755 --- a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py +++ b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py @@ -82,21 +82,9 @@ def generate_gen_snapshot(directory, destination): print('Cannot find gen_snapshot at %s' % gen_snapshot_dir) sys.exit(1) - command = [ + subprocess.check_call([ 'xcrun', 'bitcode_strip', '-r', gen_snapshot_dir, '-o', destination - ] - process = subprocess.Popen( - command, stderr=subprocess.STDOUT, stdout=subprocess.PIPE - ) - stdout, stderr = process.communicate() - exit_status = process.wait() - - if exit_status != 0: - print( - 'Error processing command with stdout[%s] and stderr[%s]' % - (stdout, stderr) - ) - return 1 + ]) if __name__ == '__main__':