[iOS] Eliminate framework bitcode stripping flag (flutter/engine#36628)
Eliminates the `--strip-bitcode` flag from the `create_ios_framework.py` and `create_full_ios_framework.py` scripts. Issue: https://github.com/flutter/flutter/issues/107884
This commit is contained in:
@@ -102,7 +102,6 @@
|
||||
"out/ios_debug_sim",
|
||||
"--simulator-arm64-out-dir",
|
||||
"out/ios_debug_sim_arm64",
|
||||
"--strip-bitcode",
|
||||
"--dsym",
|
||||
"--strip"
|
||||
],
|
||||
|
||||
@@ -41,12 +41,6 @@ def main():
|
||||
parser.add_argument('--simulator-arm64-out-dir', type=str, required=False)
|
||||
parser.add_argument('--strip', action="store_true", default=False)
|
||||
parser.add_argument('--dsym', action="store_true", default=False)
|
||||
parser.add_argument(
|
||||
'--strip-bitcode',
|
||||
dest='strip_bitcode',
|
||||
action="store_true",
|
||||
default=False
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -201,11 +195,6 @@ def zip_archive(dst):
|
||||
|
||||
|
||||
def process_framework(args, dst, framework, framework_binary):
|
||||
if args.strip_bitcode:
|
||||
subprocess.check_call([
|
||||
'xcrun', 'bitcode_strip', '-r', framework_binary, '-o', framework_binary
|
||||
])
|
||||
|
||||
if args.dsym:
|
||||
dsym_out = os.path.splitext(framework)[0] + '.dSYM'
|
||||
subprocess.check_call([DSYMUTIL, '-o', dsym_out, framework_binary])
|
||||
|
||||
@@ -33,12 +33,6 @@ def main():
|
||||
parser.add_argument('--simulator-arm64-out-dir', type=str, required=False)
|
||||
parser.add_argument('--strip', action="store_true", default=False)
|
||||
parser.add_argument('--dsym', action="store_true", default=False)
|
||||
parser.add_argument(
|
||||
'--strip-bitcode',
|
||||
dest='strip_bitcode',
|
||||
action="store_true",
|
||||
default=False
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -113,11 +107,6 @@ def main():
|
||||
|
||||
|
||||
def process_framework(args, framework, framework_binary):
|
||||
if args.strip_bitcode:
|
||||
subprocess.check_call([
|
||||
'xcrun', 'bitcode_strip', '-r', framework_binary, '-o', framework_binary
|
||||
])
|
||||
|
||||
if args.dsym:
|
||||
dsym_out = os.path.splitext(framework)[0] + '.dSYM'
|
||||
subprocess.check_call([DSYMUTIL, '-o', dsym_out, framework_binary])
|
||||
|
||||
Reference in New Issue
Block a user