Adopt Flutter.xcframework in tool (#71495)

This commit is contained in:
Jenn Magder
2020-12-04 13:57:11 -08:00
committed by GitHub
parent f67b94bdf6
commit d4150d3f6d
14 changed files with 275 additions and 180 deletions

View File

@@ -22,6 +22,8 @@ Future<bool> containsBitcode(String pathToBinary) async {
// See: https://stackoverflow.com/questions/32755775/how-to-check-a-static-library-is-built-contain-bitcode
final String loadCommands = await eval('otool', <String>[
'-l',
'-arch',
'arm64',
pathToBinary,
]);
if (!loadCommands.contains('__LLVM')) {