From eb0427e604c1bf7fe46bf15c387077a077f22571 Mon Sep 17 00:00:00 2001 From: russellwheatley Date: Tue, 5 Jul 2022 09:33:08 +0100 Subject: [PATCH] fix: path to ruby script --- packages/flutterfire_cli/lib/src/commands/config.dart | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/packages/flutterfire_cli/lib/src/commands/config.dart b/packages/flutterfire_cli/lib/src/commands/config.dart index 954984f6..06c0b75c 100644 --- a/packages/flutterfire_cli/lib/src/commands/config.dart +++ b/packages/flutterfire_cli/lib/src/commands/config.dart @@ -482,16 +482,12 @@ class ConfigCommand extends FlutterFireCommand { final melosPackageFileUri = await Isolate.resolvePackageUri(Platform.script); - final packagePath = - path.split(path.normalize('${melosPackageFileUri!.toFilePath()}')); - - final sourceDirIndex = packagePath.indexOf('.dart_tool'); - - final listToPbxScriptDir = packagePath.sublist(0, sourceDirIndex); + final packagePath = path.split(path + .normalize('${melosPackageFileUri!.toFilePath()}/../../../../..')); final pathToPbxScript = path.joinAll( [ - ...listToPbxScriptDir, + ...packagePath, 'scripts', 'set_ios_pbxproj_file.rb', ],