Xdebug cannot run on macOS 10.14, prompting unsigned phpStorm

is set according to this process and can be used normally before. Later, I don"t know what happened, so I couldn"t use it.
https://blog.csdn.net/KimBing.

I downloaded and installed xdebug-2.6.1 copied in / opt/php71/extensions/xdebug.so , and added the configuration correctly in php.ini .

the following error message occurred when calling php in terminal :

sh-3.2-sharp php -version
Failed loading /opt/php71/extensions/xdebug-2.6.1/xdebug.so:  dlopen(/opt/php71/extensions/xdebug-2.6.1/xdebug.so, 0x0009): code signature in (/opt/php71/extensions/xdebug-2.6.1/xdebug.so) not valid for use in process: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
PHP 7.1.19 (cli) (built: Aug 17 2018 18:03:17) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

phpStorm also cannot be used to figure out how to set or operate.

Aug.04,2021

it's best not to extend it on the built-in php, all kinds of permission issues.
you can install php, with brew. Immediately after installation, the built-in php is overwritten (PATH lookup order)

Menu