Xcode

Logs

Not needed! As of Xcode 15, logs can be filtered by library by right clicking them in the output.

Setting the OS_ACTIVITY_MODE = disable environment variable for the current scheme may hide noisy system library messages from the output. Possibly all NSLogs as well though?

PluginKit

pluginkit is a command line program that can help deal with extensions. In particular, it may be of use assigning the right extension to launch.

If the problem is instead with multiple copies of Xcode.app, re-register the main one.

$ PATH=/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support:"$PATH"
$ lsregister -f /Applications/Xcode.app