Xcode 8: Unable to Accept License Agreement on OS X El Capitan 10.11.6
Try using xcodebuild to accept the license. Quit Xcode and run the following:

sudo xcodebuild -license accept


You may need to use xcode-select --switch first to switch Xcode version if you have multiple Xcode apps on your system.