Katalon doesn't recognize real device on Mac m1

I installed Katalon on mac mini m1 and built webdriveragent onto my iphone (webdriveragent icon appeared on phone screen). However, Katalon does not detect the real device, only the list of emulator devices.

Below are all the libraries, tools, etc that I have installed

  1. Mac information:
  • mac mini m1 silicon (using apple M1 chip)
  • Mac OS: Monterey 12.0.1
  • Xcode 13.1 and Xcode command line for 13.1
  1. My iPhone
  • XR 15.1
  • Enable UI Automation => Enabled
  1. Tools, libraries, etc
  • Node JS 16.13.0 (ARM64, I download it on nodejs.org)
  • npm 8.1.0
  • Jdk 17.0.1 (I downloaded it on azul.com)
  • appim 1.22.1
  • Katalon 8.2.0 (Appium Directory: I linked to the appium directory)
  • npm install -g authorize-ios => Completed installation
  • brew install carthage => Completed installation
  • brew install ios-deploy => Completed installation
  • brew install usbmuxd => Completed installation
  • brew unlink usbmuxd => Done
  • brew link usbmuxd => Done
  • brew install libimobiledevice => Completed installation
  • brew unlink libimobiledevice => Done
  • brew link libimobiledevice => Done

Attention:
During appium installation I got an error
etc.
npm ERR! path: ‘/usr/local/lib/node_modules/appium’
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
=> I solved this problem by running the 3 commands below
sudo chown -R mymac123 /usr/local/lib/node_modules
sudo chown -R mymac123 /usr/local/bin
sudo chown -R mymac123 /usr/local/share

I reinstalled appium, keep getting below message on terminal.
added 677 packages, and audited 678 packages in 9s

   35 vulnerabilities (30 moderate, 1 high, 4 critical)

   To address issues that do not require attention, run:
     npm audit fix
   ect.

============================================================================
I still can’t figure out why, can someone tell me please?

@thanh.tung.170861,

Please plug the device then run these commands and share the output:

which idevice_id
idevice_id -l
1 Like

@duyluong,

idevice_id appeared correctly, so I just can’t figure out why katalon doesn’t recognize the device
You see my terminal window

macmi12345@administrators-Mac-mini-2 ~ % which idevice_id
/opt/homebrew/bin/idevice_id
macmi12345@administrators-Mac-mini-2 ~ % idevice_id -l
000xxxxx-00150Dxxxxxxxxxx

@thanh.tung.170861

Katalon Studio detects idevice_id in /usr/local/bin, please help create symbolic links from idevice_id, idevicepair, ideviceinfo to that location

sudo ln -s <path to idevice_id> /usr/local/bin
sudo ln -s <path to idevicepair> /usr/local/bin
sudo ln -s <path to ideviceinfo> /usr/local/bin

Restart Studio then spy/record again

1 Like

@duyluong

Katalon has detected my device
Thank you very much!

1 Like

For the iOS setup specifically, We recommend following our documents and the below video to build WebDriverAgent:

1 Like

please help me to know what u did to solve this issue

Can you clarify your problem?

Hi,
I have Mac mini 2020 (OS Monterey 12.2) with TERMINAL with using zsh…
I have an appium in path “/opt/homebrew/bin/appium” and Spy and Record mode said to me:
“Appium directory is invalid: Cannot find appium executble file.”
Could you please let me know what to do?

Thanks a lot.

Hi Daniel,

Please try as follow:

  1. Create symlinks from /opt/homebrew/bin to /usr/local/bin

1sudo ln -s /opt/homebrew/bin/node /usr/local/bin 2sudo ln -s /opt/homebrew/bin/idevice_id /usr/local/bin 3sudo ln -s /opt/homebrew/bin/idevicepair /usr/local/bin 4sudo ln -s /opt/homebrew/bin/ideviceinfo /usr/local/bin 5sudo ln -s /opt/homebrew/bin/ios-deploy /usr/local/bin

  1. Add the Appium folder’s path into the Katalon Studio -> Preferences -> Katalon -> Mobile.