appium-idb icon indicating copy to clipboard operation
appium-idb copied to clipboard

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

Open johnlim-tech opened this issue 6 years ago • 9 comments

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

johnlim-tech avatar Oct 10 '19 12:10 johnlim-tech

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.

imurchie avatar Oct 11 '19 19:10 imurchie

Same issue here with Appium 1.15.1

coonyien avatar Oct 30 '19 07:10 coonyien

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

tamastimar avatar Oct 31 '19 16:10 tamastimar

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

nebehslav avatar Nov 07 '19 13:11 nebehslav

Is there any fix currently for this? Thanks!

klingham avatar Nov 19 '19 13:11 klingham

Is there any fix currently for this? Thanks!

johnlim posted a workaround in the original post:

The workaround is to uninstall IDB

renfeng avatar Nov 21 '19 11:11 renfeng

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

imurchie avatar Nov 21 '19 13:11 imurchie

@imurchie any updates on this?

toptal-pgagnidze avatar Jan 06 '20 13:01 toptal-pgagnidze

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.

Vicropht avatar Jan 30 '20 09:01 Vicropht