diff --git a/sky/tools/create_ios_framework.py b/sky/tools/create_ios_framework.py index 0500e671c21f6..73f17b4303ad2 100755 --- a/sky/tools/create_ios_framework.py +++ b/sky/tools/create_ios_framework.py @@ -60,7 +60,7 @@ def main(): linker_out = os.path.join(fat_framework, 'Flutter') - subprocess.call([ + subprocess.check_call([ 'lipo', arm64_dylib, armv7_dylib, @@ -72,14 +72,14 @@ def main(): if args.dsym: dsym_out = os.path.splitext(fat_framework)[0] + '.dSYM' - subprocess.call(['dsymutil', '-o', dsym_out, linker_out]) + subprocess.check_call(['dsymutil', '-o', dsym_out, linker_out]) if args.strip: # copy unstripped unstripped_out = os.path.join(args.dst, 'Flutter.unstripped') shutil.copyfile(linker_out, unstripped_out) - subprocess.call(["strip", "-x", "-S", linker_out]) + subprocess.check_call(["strip", "-x", "-S", linker_out]) if __name__ == '__main__': diff --git a/sky/tools/create_macos_gen_snapshot.py b/sky/tools/create_macos_gen_snapshot.py index b7597200a3b38..218ee2ad725de 100755 --- a/sky/tools/create_macos_gen_snapshot.py +++ b/sky/tools/create_macos_gen_snapshot.py @@ -30,7 +30,7 @@ def main(): print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot return 1 - subprocess.call([ + subprocess.check_call([ 'lipo', arm64_gen_snapshot, armv7_gen_snapshot,