mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Check for CocoaPods installation if required (#8666)
This commit is contained in:
parent
54b80cca0d
commit
bf6b6e188d
@ -317,8 +317,18 @@ bool _checkXcodeVersion() {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool _checkCocoaPodsInstalled() {
|
||||
if (!platform.isMacOS)
|
||||
return false;
|
||||
return exitsHappy(<String>['pod', '--version']);
|
||||
}
|
||||
|
||||
void _installCocoaPods(Directory bundle, String engineDirectory) {
|
||||
if (fs.file(fs.path.join(bundle.path, 'Podfile')).existsSync()) {
|
||||
if (!_checkCocoaPodsInstalled()) {
|
||||
printError('Warning: CocoaPods not installed. Not running pod install.');
|
||||
return;
|
||||
}
|
||||
runCheckedSync(
|
||||
<String>['pod', 'install'],
|
||||
workingDirectory: bundle.path,
|
||||
|
Loading…
Reference in New Issue
Block a user