Check for outdated Podfile before running pod install (#79343)

This commit is contained in:
Jenn Magder
2021-03-30 12:42:39 -07:00
committed by GitHub
parent f59b185be4
commit 5a6d2a0a8e
2 changed files with 7 additions and 17 deletions

View File

@@ -162,6 +162,7 @@ class CocoaPods {
if (!xcodeProject.podfile.existsSync()) {
throwToolExit('Podfile missing');
}
_warnIfPodfileOutOfDate(xcodeProject);
bool podsProcessed = false;
if (_shouldRunPodInstall(xcodeProject, dependenciesChanged)) {
if (!await _checkPodCondition()) {
@@ -170,7 +171,6 @@ class CocoaPods {
await _runPodInstall(xcodeProject, buildMode);
podsProcessed = true;
}
_warnIfPodfileOutOfDate(xcodeProject);
return podsProcessed;
}