Let (almost) all flutter create CocoaPods references be dynamically generated later (#9791)
* Remove all initial cocoapod traces from flutter create except Podfile
* Make updateXcodeGeneratedProperties parameters named
* review notes
diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart
index 5262b25..413b33a 100644
--- a/packages/flutter_tools/lib/src/ios/mac.dart
+++ b/packages/flutter_tools/lib/src/ios/mac.dart
@@ -137,9 +137,6 @@
bool buildForDevice,
bool codesign: true
}) async {
- final String flutterProjectPath = fs.currentDirectory.path;
- updateXcodeGeneratedProperties(flutterProjectPath, mode, target);
-
if (!_checkXcodeVersion())
return new XcodeBuildResult(success: false);
@@ -157,6 +154,13 @@
if (hasFlutterPlugins)
await _runPodInstall(appDirectory, flutterFrameworkDir(mode));
+ updateXcodeGeneratedProperties(
+ projectPath: fs.currentDirectory.path,
+ mode: mode,
+ target: target,
+ hasPlugins: hasFlutterPlugins
+ );
+
final List<String> commands = <String>[
'/usr/bin/env',
'xcrun',