to install swoole with mac os x 
open your terminal 
and use this commands 
git clone https://github.com/swoole/swoole-src.git
cd swoole-src
phpize
./configure
make && make install
also find your swoole.so from folder swoole-src and move it 
in to your apache and add full path in php.ini 
like extension=your/full/path/swoole.so