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 139e9ed146..4daa54f0b2 100755 --- a/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py +++ b/engine/src/flutter/sky/tools/create_macos_gen_snapshots.py @@ -78,9 +78,15 @@ def generate_gen_snapshot(directory, destination): print('Cannot find gen_snapshot at %s' % gen_snapshot_dir) sys.exit(1) - subprocess.check_call([ + result = subprocess.run([ 'xcrun', 'bitcode_strip', '-r', gen_snapshot_dir, '-o', destination ]) + if result.returncode != 0: + print( + 'Error processing command with stdout[%s] and stderr[%s]' % + (result.stdout, result.stderr) + ) + return 1 if __name__ == '__main__':