forked from firka/flutter
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:
@@ -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,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user