appium / appium-idb

idb integration for Appium
Apache License 2.0
73 stars 14 forks source link

Could not connect to simulator - Make sure both host and port are correct and reachable (IDB) #18

Open johnlim-tech opened 4 years ago

johnlim-tech commented 4 years ago

I install Appium 1.15 and install appium IDB. However, it ended up with the error as the above subject title.

The original report is filed in https://github.com/appium/appium-desktop/issues/1123

Launching the simulator will have an error in appium Make sure both host and port are correct and reachable. The workaround is to uninstall IDB.

This is working when I have xcode 10 and older appium 1.41. The setup is correct as Appium-doctor indicate it is configurate correctly.

This is my desired capabilities (in form of json) "deviceName": "iPhone 11", "platformName": "IOS", "automationName": "XCuiTest", "app": /Users//johnlim//Fintool//API//app//FintoolTracker-1.app", "platformVersion" : "13.1"

Environment

Appium CLI Mac OS 10.15 Catalina Appium 15.0 CLI

Below is the full appium log :

https://gist.github.com/johnlim-tech/3dd93915d9be3c3df22b0fdcdaf62a9b

imurchie commented 4 years ago

The flow we are trying involves running the idb kill command, which seems to crash the process. I'm working on trying to figure out a configuration that works.

coonyien commented 4 years ago

Same issue here with Appium 1.15.1

tamastimar commented 4 years ago

Uninstalling idb which was installed before appium solved me the problem either.

nebehslav commented 4 years ago

Got the same problem. When I start manually idb_companion I got:

dyld: Library not loaded: /usr/local/opt/protobuf/lib/libprotobuf.20.dylib Referenced from: /usr/local/bin/idb_companion Reason: image not found

I have libprotobuf.21.dylib but not libprotobuf.20.dylib

klingham commented 4 years ago

Is there any fix currently for this? Thanks!

renfeng commented 4 years ago

Is there any fix currently for this? Thanks!

johnlim posted a workaround in the original post:

The workaround is to uninstall IDB

imurchie commented 4 years ago

To actually use idb, I am working on a fix. The build is messed up right now, but it should be out soon.

toptal-pgagnidze commented 4 years ago

@imurchie any updates on this?

Vicropht commented 4 years ago

I uninstalled idb (since I was not using it) and it's fine now, so the workaround works. Standing by for the issue to be solved.