Error : GCDAsyncSocket.m:267:35: Instance variable 'preBuffer' is being directly accessed

I am going to build webdriverAgentrunner on Xcode 13 but got an error about GCDAsyncSocket

Instance variable ‘writePointer’ is being directly accessed…
Instance variable ‘preBuffer’ is being directly accessed…
and Instance variable …

Can anyone give me some advice?

MacOs Big Sur 11.6,Apple M1

Did you run build.sh from the Scripts directory? I have built with Xcode 13, but I always run build.sh first. Only other thing I can think of is that there is something about the M1 processor that needs to be addressed in source. Make sure you are using the latest Appium (1.22.1 as of now).

I am seeing this:
Disable the build in notification checker by XCTest to avoid possible UI interuction failure on Xcode 13.2 and iOS 15.2 WebDriverAgent#540

In the release notes for 1.22.1:

But unfortunately that is beyond my level of expertise.