0

I'd be happy to provide more context on demand, sorry for being so generic, i really don't know what has caused this. If this helps: I have previously deleted two Info.plist files due to them existing as multiples in diferrent directories and then restored one of them, I have also tried reinstalling pods, ran flutter pub get and upgrade.

flutter doctor -v produces the same error, so maybe it has something to do with my flutter installation?

3 Answers3

3

If anyone has the same issue after updating Flutter, I've spent some time on it and here is my solution:

Typing which sysctl on your terminal may result in sysctl command not found. If this is the case, that means 'Sysctl' isn't on your path anymore (for whatever reason). You need to update your path to contain Sysctl.

Depending on your Mac, sysctl could be located in /usr/bin or /usr/sbin. In your zsh (or bash) config file, update your path with: :/usr/sbin

Then type: source [path to your config file] and try it out with: which sysctl If everything goes well, the path to Sysctl should appear.

You can now run flutter doctor

Cheers

Esso
  • 81
  • 5
1

Solved, I just needed to source ~/.zsh_profile.

0

The reason why this error is being thrown : the system cannot find sysctl

How to make it find ?

  1. Open Terminal
  2. Run: nano ~/.zshrc
  3. Add the following line : export PATH=/usr/sbin/:${PATH}
  4. Exit and Save
  5. Run: source ~/.zshrc

Now, the error is fixed. Try again the command you were trying to run.

Akshay Chopra
  • 1,035
  • 14
  • 10