Skip to content

Commit

Permalink
fix: path to ruby script
Browse files Browse the repository at this point in the history
  • Loading branch information
russellwheatley committed Jul 5, 2022
1 parent ddf6ae3 commit eb0427e
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions packages/flutterfire_cli/lib/src/commands/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
],
Expand Down

0 comments on commit eb0427e

Please sign in to comment.