You should definitely run sudo xcode-select -switch /Applications/Xcode.app , as everyone here says, which will fix many problems, but certainly not all.
Afaik, all other problems exist in the configuration information for various packages. You can simply reinstall MacPorts as described in the migration guide , but I found another solution.
You should start searching for all processed port files using commands like grep /Developer/ ... , after executing sudo bash and cd /opt/local , naturally.
You must identify all processed ports using port provides ... , which I passed through sed and sort | uniq sort | uniq . You can simply reinstall all these ports using the port -n upgrade --force ... commands or the separate port uninstall ... and port install ... commands.
I recommend using the one large port -n upgrade --force ... to avoid duplication of dependency rebuilding, using subsequently separate uninstall and install commands.
There are, of course, different ports for which /Developer exists only inside text configuration files, that is, you can fix them manually with sed -i -e 's/\/Developer//g' ... but you cannot do it using binary files.
I am afraid that you should at least rebuild all your installations in Python and Perl, making this update an ideal time to clean packages that depend on older versions, ala python26 and perl5.8 .
There are several technically feasible ports that I decided not to rebuild, like fuse4x-kext , which contained /Developer inside Library/Extensions/fuse4x.kext/Contents/MacOS/fuse4x but did not prevent sshfs from working correctly.
Jeff Burdges Apr 04 2018-12-12T00: 00Z
source share