iOS simulators not visible in katalon studio

Hi All,

I am stuck in a process where simulator , even if up and running, is not visible in Katalon Studio. The same is visible and working in Xcode. Kindly help on the same on urgent basis.

Hi Chand,

Can you confirm a few things?

- What version of Xcode are you using?
- What version of Appium are you using?
- What does your xcode-select command point to? From your terminal, run:

xcode-select -p

If you don’t see anything from the xcode-select command, you’ll need to make sure you set a default Xcode version:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

Thanks,
Chris

Hi Chris
Thanks for replying. The details are as under :

Xcode version : 10.0 (10A255)
Appium version : 1.8.1
xcode-select : /Library/Developer/CommandLineTools

Actually I was able to view all the simulators in my Katalon studio local devices list when I installed it. But later, when I made changes to in appium configurations by installing Carthage and so on, the simulators are no more visible in Katalon.

Hi Chand,

Your xcode-select command output looks like it might cause you problems. Can you try running the command:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer

And see if that helps?

- Chris

1 Like

Thank you so much Chris. It worked like a charm. Can you please throw some light on the root cause of the problem along with function of above mentioned command ?

Thanks again.

Hi Chand,

Xcode has a number of tools that come with it, including the simulators. Other programs, like Katalon Studio, rely on those tools to get lists of simulators using the command

xcrun simctl list

In order to prevent hardcoding of the Xcode app path (and support multiple versions of Xcode on one machine), xcode-select is used to point to the currently desired version.

Installing new versions of Xcode (and sometimes other system tools) can mess up that xcode-select path, so we need to reset it to the correct one.

One thing to note: Katalon Studio doesn’t support Xcode 10 yet, so you will need to install an older version on your machine as well (which is where xcode-select becomes very handy).

You’ll have to install an older version (9.4.1 is what I have) alongside Xcode 10. You can do this by going to https://developer.apple.com/download/more/ and downloading the older one.

You’ll be asked to “Keep Both” when you install - do that. I named mine “Xcode_9.4.app”. Then you’ll have to set the default version to the older version:

sudo xcode-select -s /Applications/Xcode_9.4.app/Contents/Developer

Enter your login/system password when prompted.

Now you can use Xcode 10 to develop, but still run Katalon Studio.

Hope this helps,

Chris

I’m not sure i’d recommend it for everything because its a beta version, but it you absolutely have to run xcode 10 with Katalon you can upgrade appium to ver 1.8.2beta. That version supports the latest xcode versioning scheme, but is still compatible with the way katalon interacts with appium.

1 Like

That’s great news, thanks @Frank_Keefer.

invalid developer directory appear when i run this command

Hi @marian_magdy,

Do you have Xcode installed? If so, can you try running:

xcode-select -p

to print out the current location?

– Chris

nothing change same issue

Hi @marian_magdy

Can you try running this in your Terminal:

xcode-select --install

– Chris

Xcode work now but i have another issue when i open katalon i can not find my device

Hi @marian_magdy,

What devices do you see? Is it only watches? Make sure you restart Katalon Studio after running those xcode commands.

You can try to run this from the command line to see if your system actually sees a list of phone simulators:

xcrun simctl list

If that shows you the device you expect, but you can’t see it in Katalon, you can try some of these troubleshooting tips:

Hope this helps,

Chris

Hi @Chris_Trevarthen,

when i’m running this command
xcodebuild -project
WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination
‘id=xxxxxxxxxxx’ test

This Error appears to me
Testing failed:

WebDriverAgentRunner-Runner.app encountered an error (Failed to install or
launch the test runner. (Underlying error: Unable to launch
com.apple.test.WebDriverAgentRunner-Runner. (Underlying error: Failed to
deserialize message. (Underlying error: The data couldn’t be read because
it isn’t in the correct format. The data isn’t in the correct format.)))

Hi @mmariann103,

Are you able to open the WebDriverAgent project in Xcode? Does it build correctly on a simulator (using CMD+B)? Or do you see errors?

– Chris