Record my iPad screen on MacBook
There are several 3rd party AirPlay receivers which could run on Mac OS X and receive/record screen mirroring from an iDevice.

You have to download and install one of these applications. Try LonelyScreen (free) or Reflector ($15).

Another way is by using QuickTime. QuickTime on OS X 10.10+ can record iDevice screens, but you must connect your iDevice to Mac, while the AirPlay receiver method can work with Wi-Fi.