Skip iOS project migration when script is already embedding frameworks (#51963)

This commit is contained in:
Jenn Magder
2020-03-04 16:12:13 -08:00
committed by GitHub
parent dc33334675
commit db94472aeb
2 changed files with 17 additions and 1 deletions

View File

@@ -87,7 +87,7 @@ class RemoveFrameworkLinkAndEmbeddingMigration extends IOSMigrator {
// Embed and thin frameworks in a script instead of using Xcode's link / embed build phases.
const String thinBinaryScript = 'xcode_backend.sh\\" thin';
if (line.contains(thinBinaryScript)) {
if (line.contains(thinBinaryScript) && !line.contains(' embed')) {
return line.replaceFirst(thinBinaryScript, 'xcode_backend.sh\\" embed_and_thin');
}