On device

1. Menu -> Settings -> About Device -> Build No (click seven times to Enable Developer Mode)

2. Menu -> Settings -> Developer Options -> Allow USB Debug Mode to ON

 

On Mac

1. Connect to USB port of your MAC 

2. First try to MTP mode when connected on your device, if its not connected or not appears in Android Studio then try to choose PTP mode.

3. Select in your device in deployment target window in Android Studio