Commit bf6b6e18 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Check for CocoaPods installation if required (#8666)

parent 54b80cca
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment