How to fix the MacPorts “Warning: xcodebuild exists but failed to execute” warning message

Author: , January 9th, 2019

Execute the following command: $ sudo xcode-select -switch /Applications/Xcode.app