diff --git a/sky/tools/create_full_ios_framework.py b/sky/tools/create_full_ios_framework.py index 7c1ae0f0a9f4e..0572adc98a644 100644 --- a/sky/tools/create_full_ios_framework.py +++ b/sky/tools/create_full_ios_framework.py @@ -243,7 +243,7 @@ def _generate_gen_snapshot(gen_snapshot_path, destination): print('Cannot find gen_snapshot at %s' % gen_snapshot_path) sys.exit(1) - subprocess.check_call(['xcrun', 'bitcode_strip', '-r', gen_snapshot_path, '-o', destination]) + shutil.copy2(gen_snapshot_path, destination) if __name__ == '__main__': diff --git a/sky/tools/create_macos_gen_snapshots.py b/sky/tools/create_macos_gen_snapshots.py index eae0f70aac693..a9b3af67e882e 100755 --- a/sky/tools/create_macos_gen_snapshots.py +++ b/sky/tools/create_macos_gen_snapshots.py @@ -5,6 +5,7 @@ # found in the LICENSE file. import argparse +import shutil import subprocess import sys import os @@ -69,7 +70,7 @@ def generate_gen_snapshot(gen_snapshot_path, destination): print('Cannot find gen_snapshot at %s' % gen_snapshot_path) sys.exit(1) - subprocess.check_call(['xcrun', 'bitcode_strip', '-r', gen_snapshot_path, '-o', destination]) + shutil.copy2(gen_snapshot_path, destination) if __name__ == '__main__':