xcrun --find seems like the appropriate choice here. Thanks to Brandon Allbery for suggesting this.
Attach a file by drag & drop or click to upload