# Got a trouble with projects after upgrade to macOS Monterey (even after installing php via brew)

**URL:** https://iplug2.discourse.group/t/got-a-trouble-with-projects-after-upgrade-to-macos-monterey-even-after-installing-php-via-brew/505
**Category:** macOS
**Created:** [14 November 2021 16:11 UTC](https://iplug2.discourse.group/t/got-a-trouble-with-projects-after-upgrade-to-macos-monterey-even-after-installing-php-via-brew/505 "2021-11-14T16:11:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DSV](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DSV](https://iplug2.discourse.group/u/DSV)
#### Post date: [14 November 2021 16:11 UTC](https://iplug2.discourse.group/t/got-a-trouble-with-projects-after-upgrade-to-macos-monterey-even-after-installing-php-via-brew/505/1 "2021-11-14T16:11:31Z")

</div>

Hello! Sorry for disturb but I need a help again. All examples and my project used to be compiled well before I upgraded to macOS Monterey. So then I pulled last iPlug updates and found the changes in project.pbxproj files. When I tried to make a build I received an error message

```auto
/opt/homebrew/bin/php not found, install php via brew
Command PhaseScriptExecution failed with a nonzero exit code

```

As that message required I installed php via brew but got the same message. So I checked the path “/opt/homebrew/bin/php” and didn’t find it. Then I found a path to php: “/usr/local/Cellar/php/8.0.12/bin/php” and change that one in project.pbxproj . So build was made successful but I get another error message in an running app - please find it on the screenshot

 ![зображення](https://global.discourse-cdn.com/free1/uploads/iplug2/original/1X/2745f29feba5e6b236f0fc4536465dbd48e5ca6f.png)

I have the same trouble in my project to. Now I have no idea where I have to looking for a way to solve that issue. Thank you in advance for any help

---

<div class="post-metadata">

### Author: ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)
#### Post date: [14 November 2021 18:05 UTC](https://iplug2.discourse.group/t/got-a-trouble-with-projects-after-upgrade-to-macos-monterey-even-after-installing-php-via-brew/505/2 "2021-11-14T18:05:37Z")

</div>

Have you got the very latest iPlug2? There was a brief moment when a new feature I added for handling light/dark mode was crashing

---

<div class="post-metadata">

### Author: ![DSV](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@DSV](https://iplug2.discourse.group/u/DSV)
#### Post date: [14 November 2021 20:01 UTC](https://iplug2.discourse.group/t/got-a-trouble-with-projects-after-upgrade-to-macos-monterey-even-after-installing-php-via-brew/505/3 "2021-11-14T20:01:57Z")

</div>

Yes, you are right, I checked and found one more iPlug2 commit that fixed the issue. Thank you very much!

But I still don’t understand why the path to php is different on my Mac?  
I’m not too familiar with the Mac, may be I did something wrong? I just ran “brew install php” in a terminal, got an error message “`Error: python@3.9: the bottle needs the Apple Command Line Tools to be installed. You can install them, if desired, with: xcode-select --install`”, installed it and then ran “brew install php” again. After that php was successfully installed, but not in the brew folder. I found it here “/usr/local/Cellar/php/8.0.12/bin/php”
