title: Install grpc extension on Mac OS Big Sur
body: <p>For 2 days now, I am trying to install grpc for php on my Mac mini server</p>
  <ul>
  <li>Mac OS Big Sur 11.2.1</li>
  <li>Built-in Apache</li>
  <li>I have tried it on php 7.3 and 7.4 installed with homebrew</li>
  </ul>
  <p>I have installed grpc <code>pecl grpc install</code> after a bunch of attempt I have finally compile and installed it with pecl.</p>
  <p>extensions are placed in the good repertory. But I encounter signing issue.
  <code>php -m</code> show grpc in the list but not <code>php_info()</code></p>
  <p><em>PHP Warning:  PHP Startup: Unable to load dynamic library 'grpc.so' (tried: /usr/local/lib/php/pecl/20190902/grpc.so (dlopen(/usr/local/lib/php/pecl/20190902/grpc.so, 9): no suitable image found.  Did find:\n\t/usr/local/lib/php/pecl/20190902/grpc.so: code signature in (/usr/local/lib/php/pecl/20190902/grpc.so) not valid for use in process using Library Validation: mapping process is a platform binary, but mapped file is not\n\t/usr/local/lib/php/pecl/20190902/grpc.so: stat() failed with errno=1), /usr/local/lib/php/pecl/20190902/grpc.so.so (dlopen(/usr/local/lib/php/pecl/20190902/grpc.so.so, 9): image not found)) in Unknown on line 0</em></p>
  <ol>
  <li>I have disabled SIP. Still same issue.</li>
  <li>I have codesigned the extension with my apple developper ID. <code>codesign -f -s &quot;Mac Developer: MY_DEV_ID&quot; /usr/local/lib/php/pecl/20190902/grpc.so</code>
  same issue</li>
  <li>I have <code>xattr /usr/local/lib/php/pecl/20190902/grpc.so</code>
  then <code>sudo xattr -d com.apple.quarantine /usr/local/lib/php/pecl/20190902/grpc.so</code></li>
  <li>I also tried with gatekeeper disabled.</li>
  </ol>
  <p>And still the same problem. Is there someone that sucssefully installed grpc on the Mac with Big Sur, who would have an idea on what is going wrong ?</p>