Webdriveragent build failure on CocoaAsyncSocket/GCDAsyncSocket.h' file not found

debug] [BaseDriver] Event ‘wdaStartFailed’ logged at 1603786728912 (16:18:48 GMT+0800 (Singapore Standard Time))
[debug] [XCUITest] Unable to launch WebDriverAgent because of xcodebuild failure: Command ‘carthage bootstrap --platform iOS,tvOS’ exited with code 1
[XCUITest] Quitting and uninstalling WebDriverAgent

/usr/local/lib/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgentLib/Vendor/RoutingHTTPServer/RoutingHTTPServer.h:16:9: fatal error:

’CocoaAsyncSocket/GCDAsyncSocket.h’ file not found

#import <CocoaAsyncSocket/GCDAsyncSocket.h>

**^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~**

1 error generated.

Test session results, code coverage, and logs:

/Users/laymui/Library/Developer/Xcode/DerivedData/WebDriverAgent-ciegwgvxzxdrqthilmrmczmqvrgu/Logs/Test/Test-WebDriverAgentRunner-2020.10.27_16-20-34-+0800.xcresult

Testing failed:

‘CocoaAsyncSocket/GCDAsyncSocket.h’ file not found

Testing cancelled because the build failed.

**** TEST FAILED ****

my xcode Version 12.0 (12A7209)
appium is 1.18.1

Hi Tirzah,

Please upgrade your appium to 1.18.3 . It worked for me