I had the same problem and did what was mentioned in [Macports ticket #61866] trac.macports.org/ticket/61866)
Which was to edit /opt/local/libexec/macports/lib/port1.0/portconfigure.tcl
I searched for sdk_version and made the following changes to hard code 11.3.(by this time this was the version of Xcode I had upgraded to to install 11.2)
default configure.sdk_version {11.3}
#default configure.sdk_version {$macosx_sdk_version}
This cleared up the error message. I have no idea if it was a good idea.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: