Fix some tests that fail with Swift Package Manager enabled (#152267)

https://github.com/flutter/flutter/pull/152049 was reverted as it broke several post-submit tests. This relands the test fixes in https://github.com/flutter/flutter/pull/152049 without enabling Swift Package Manager on the master channel. 

This change is split into two commits:

1. dd1762abb9 - The changes in https://github.com/flutter/flutter/pull/152049
1. 00fdcfb7bb - Undoes the changes that enabled Swift Package Manager on the master channel

Part of https://github.com/flutter/flutter/issues/151567
This commit is contained in:
Loïc Sharma
2024-07-26 14:08:32 -07:00
committed by GitHub
parent 33b402d24c
commit f2b182f54e
7 changed files with 213 additions and 84 deletions

View File

@@ -308,3 +308,17 @@ File? _createDisabledSandboxEntitlementFile(
return disabledSandboxEntitlementFile;
}
/// Returns global (external) symbol table entries, delimited by new lines.
Future<String> dumpSymbolTable(String filePath) {
return eval(
'nm',
<String>[
'--extern-only',
'--just-symbol-name',
filePath,
'-arch',
'arm64',
],
);
}