Cannot configure xdebug; "Operation not permitted" error when trying to cp

Solution 1:

You need to temporarily disable System Integrity Protection

https://www.howtogeek.com/230424/how-to-disable-system-integrity-protection-on-a-mac-and-why-you-shouldnt/