iOS testing on mac-Error -Testing Failed in Terminal

Testing failed on Terminal when ran

xcodebuild -project WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination 'id=<udid>' test

Screen Shot 2018-08-23 at 10.22.10 AM.png

For some reason, it is working fine now.

But i still don’t get the-dialog box, so I assume the process is not successful…?

And when i tried to add .ipa file to my real device on Xcode, it says Ipad is busy and it does not get added.

Screen Shot 2018-08-23 at 1.17.10 PM.png

Screen Shot 2018-08-23 at 2.29.28 PM.png

Screen Shot 2018-08-23 at 2.31.53 PM.png

Hi Vani,
I am getting similar error into terminal but not test failed, it says build failed.
I was getting error into Xcode but that was fixed

Screen Shot 2018-10-05 at 2.44.57 PM.png

Hi Hiral,

From the error messages, it looks like the project and/or dependencies for the WebDriverAgent aren’t installed. Can you confirm that there is a directory called “Carthage” in your WebDriverAgent folder and that it has a subfolder called “Checkouts” in it? It should be located deep within your appium install directory:

<appium directory>/node_modules/appium-xcuitest-driver/WebDriverAgent/Carthage

If for some reason, “Carthage” isn’t a directory, you’ll have to remove and then recreate it:

rm -rf Carthage
mkdir Carthage
sh ./Scripts/bootstrap.sh -d

You’ll then need to open the WebDriverAgent Xcode project and build it.

If you run into more issues, these instructions are very thorough and cover a lot of the points that might cause your tests not to run:

https://medium.com/@katalon_studio/setting-up-mobile-automation-project-in-macos-with-katalon-studio-11aab3ff0efe

Hope this helps,

Chris

1 Like