How do I AirPlay mirror my iPhone screen to my MacBook Pro?
If your devices have OS X Yosemite and iOS 8 or anything newer, there's a built-in way to do this via a wired connection.


Quit QuickTime on your Mac if it is open.
Connect your iPhone, iPad or iPod touch to your Mac via a Lightning or USB-C Cable.
Open QuickTime on your Mac, and select File > New Movie Recording. 
A recording window will appear. Click the arrow next to the Record button, and select your iPhone from the dropdown menu that appears.
Click the Record button and go about your business on your iPhone.
Once you're done, click the Stop button and save the video.