Add a tool warning when pod install does not work after adding a new test/watch/extension/other target with Xcode 16 (#156758)

Running `pod install` on Xcode projects with new test/targets in Xcode 16 will fail. Since this is a [Cocoapods bug](https://github.com/CocoaPods/CocoaPods/issues/12456), this PR adds a warning to the tool that links to a github work around and the current tracking issue.

Fixes https://github.com/flutter/flutter/issues/156733
<img width="567" alt="Screenshot 2024-10-14 at 14 48 39" src="https://github.com/user-attachments/assets/6befa601-4041-46fc-9ca2-f57662adda4a">
This commit is contained in:
LouiseHsu
2024-10-16 11:58:07 -07:00
committed by GitHub
parent 293ae2e5ab
commit 53bff28f2b
2 changed files with 59 additions and 0 deletions

View File

@@ -502,6 +502,17 @@ class CocoaPods {
);
}
}
} else if (stdout.contains('unknown ISA `PBXFileSystemSynchronizedRootGroup`')) {
// CocoaPods does not work with Xcode 16 since it has not yet been
// updated to handled synchronized
// groups/folders https://github.com/CocoaPods/CocoaPods/issues/12456
_logger.printError(
'Error: CocoaPods does not support Xcode 16 synchronized groups. '
'To fix your Xcode project, '
'see https://github.com/flutter/flutter/issues/156733#issuecomment-2415359014 '
'for a workaround.',
emphasis: true,
);
}
}