Have you ever run into troubles whilst setting up Mobile testing environments, especially with the Apple’s iOS mobile operating system, such as:
- Cannot load the devices successfully (real devices or simulators/emulators)
We can try to unplug and plug in the real devices to make sure the devices can be recognized by the machines.
We may get unexpected issues regarding dependencies.
- Cannot start the application successfully.
We can try to run the application id
If you can successfully launch the application ID above, the problem is caused by your application. Please re-check the application with your development team in the same way that it was constructed. You can use this guide - Export your app using an ad hoc or development provisioning profile - to compare.
If the problem persists, please submit the application to the Product Support team via the Support Portal: Katalon Help Center
If you are unable to successfully launch the above-mentioned application ID, then the problem is caused by Appium.
Appium and Dependencies are the most intricate issues that require proper solution. We at Katalon Product Support team has created a simple, 5-step guide for you to follow below.
Please make sure that you that these steps followed thoroughly, precisely, and in the correct order.
brew uninstall ios-webkit-debug-proxy brew uninstall libimobiledevice brew uninstall ios-deploy brew uninstall carthage brew uninstall appium brew uninstall node
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
Please follow the guide below on more information on how to uninstall Homebrew:
After uninstalling homebrew, you will notice the message below from the terminal
==> Homebrew uninstalled! The following possible Homebrew files were not deleted: /opt/homebrew/.DS_Store /opt/homebrew/Frameworks/ /opt/homebrew/bin/ /opt/homebrew/etc/ /opt/homebrew/include/ /opt/homebrew/lib/ /opt/homebrew/opt/ /opt/homebrew/sbin/ /opt/homebrew/share/ /opt/homebrew/var/ You may wish to remove them yourself.
Now, we have to follow the message by removing the folder
There are several ways to install the NodeJS, such as homebrew, nvm, download and install it manually, and so on. Those ways lead to different paths and versions that you might have.
Katalon Studio will browse the NodeJS in your machines automatically. Thus, there may be some risks such as Katalon could not find correctly the nodeKS path or version to run if we install the NodeJS by ourself.
Let Katalon Studio install the NodeJS for you through the Tools → iOS → Install Dependencies
Now, If your NodeJS was installed by nvm, please refer to the steps below to uninstall it.
- Determine which node you currently have
- Remove the .nvm and .npm folders
- Remove the node files manually which exist in the folder paths below
/usr/local/bin /opt/local/bin/ /opt/local/lib/ /usr/local/lib/dtrace/ /usr/local/lib/node_module /opt/local/include/ /usr/local/include /usr/local/share/doc/ /usr/local/share/man/man1/ /usr/local/share/systemtap/tapset/
User Home → Show hidden files → Open each file before via the text editor → Remove lines including information regarding
homebrew, node, nvm → Save file.
Below are the list of files you need to open and check:
It may take a long time during the first installation, please do not stop or abort it!
The dependencies will be installed in order accordingly to make sure all things works as expected.
If the simulators/emulators do not load properly, please leave a comment below.
If you are one of our enterprise user, you can also submit a support case with your enterprise accounts through the Support Portal for faster support.
- If your iOS version is below 16, then you can use Appium 1 and 2.
- If your iOS version is 16 or higher, then you can only use Appium 2.
You should also make sure that the versions of xCode and iOS devices are compatible with each other. Please refer to this article from Apple for more information: Xcode - Support - Apple Developer
- Downgrade appium versions from 2.x to 1.x, you can use the command below
npm install -g email@example.com
Download our latest version of Katalon Studio, such as 9.0.0 from this link Katalon Studio Free Download | Katalon
Go to the steps in Katalon Studio → Mobile Recorder and Run the Application ID
- Run the command below via the terminal to install the xcuitest driver
appium driver install xcuitest
You can refer to the documentation Install Appium 2.x and execute mobile tests for more details.
- Download the dev build below, which supports Appium 2 because Katalon hasn’t officially supported it yet.
Below are the appium builds that support iOS version 16 and xCode version 14
https://download.katalon.com/8.5.4.DEV/fix-mobile-device-view-appium-2/Katalon+Studio.app.zip https://download.katalon.com/8.5.4.DEV/fix-mobile-device-view-appium-2/Katalon+Studio.dmg https://download.katalon.com/8.5.4.DEV/fix-mobile-device-view-appium-2/Katalon_Studio_Linux_64-8.5.4.tar.gz https://download.katalon.com/8.5.4.DEV/fix-mobile-device-view-appium-2/Katalon_Studio_Windows_32-8.5.4.zip https://download.katalon.com/8.5.4.DEV/fix-mobile-device-view-appium-2/Katalon_Studio_Windows_64-8.5.4.zip
Below are the appium builds that support iOS version 17 and xCode version 15
https://download.katalon.com/release-beta/8.5.4.beta3/Katalon+Studio.dmg https://download.katalon.com/release-beta/8.5.4.beta3/Katalon_Studio_Windows_64-9.1.0.zip https://download.katalon.com/release-beta/8.5.4.beta3/Katalon_Studio_Engine_MacOS-9.1.0.tar.gz https://download.katalon.com/release-beta/8.5.4.beta3/Katalon_Studio_Engine_Windows_64-9.1.0.zip
You may need to run the command below to open the Katalon Studio from the Dev Builds above:
xattr -cr /Applications/Katalon\ Studio.app
- Select Appium version 2.x (beta) option from the Project Settings → Execution → Mobile
- Then, go to the steps in Katalon Studio → Mobile Recorder and Run the Application ID
- Run the application ID:
If you encounter the below error message …
… then, access the Katalon Studio → Preferences → Katalon → Mobile , remove the appium path and click on the “Apply and Close “ button.
Finally, re-trigger the Mobile Recorder function, the appium path will be loaded automatically.
For real devices, we need to install WebDriverAgents by following the instructions below:
- Appium 1: https://docs.katalon.com/docs/create-tests/manage-projects/set-up-projects/mobile-testing/ios/mobile-install-webdriveragent-for-real-ios-devices-in-katalon-studio#install-the-webdriveragent-manually
Note: You should install it manually.
- Appium 2: https://docs.katalon.com/docs/proof-of-concept/execute-mobile-tests-with-appium-2.x-in-katalon-studio-poc#building-webdriveragent-for-real-ios-devices-with-appium-20-and-xcode-14
If you find this topic helpful, then go ahead and give us a heart ! Your feedback and support help us to deliver better and more insightful topics like this one in the future!
If you are one of our enterprise customers, then you can also submit a support ticket via the Support Portal for faster support from us!
To view more topics like this, simply navigate to the support tag.