Unable to launch WebDriverAgent because of xcodebuild failure: Command 'carthage bootstrap --platform iOS\,tvOS' exited with code 1. I tried several times but doesn;t work because of this webdriver agent issue

Go to the WebDriverAgent folder and run “sudo ./Scripts/bootstrap.sh” helps me on MacOS. I see this error every time when I update my appium