Erro when I try to set build environement for Mac

I’am trying to setup a build environement for Mac and Ardupilot. So I followed this this tutorial but I got an error when I try to run this line

brew tap ardupilot/homebrew-px4

Here is log lines

==> Tapping ardupilot/px4
Cloning into ‘/usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4’…
remote: Enumerating objects: 242, done.
remote: Total 242 (delta 0), reused 0 (delta 0), pack-reused 242
Receiving objects: 100% (242/242), 305.35 KiB | 3.08 MiB/s, done.
Resolving deltas: 100% (137/137), done.
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/px4-dev.rb
px4-dev: Unsupported special dependency :java
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/kconfig-frontends.rb
kconfig-frontends: Calling sha256 "digest" => :tag in a bottle block is disabled! Use brew style --fix on the formula to update the style or use sha256 tag: "digest" instead.
Please report this issue to the ardupilot/px4 tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
/usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/kconfig-frontends.rb:18

Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/px4-sim.rb
px4-sim: Unsupported special dependency :x11
Error: Invalid formula: /usr/local/Homebrew/Library/Taps/ardupilot/homebrew-px4/fastrtps.rb
fastrtps: Unsupported special dependency :java
Error: Cannot tap ardupilot/px4: invalid syntax in tap!

I’am using macOs BigSur version 11.5.2