Both of your error messages are reporting that you have the MacOs 15.1 SDK, but you have an older operating system version. Apple seems to not be concerned with whether or not these play nice with each other, so the advice we have been giving is either update MacOS, or downgrade Xcode to a matching version