Can't Connect to Pebble Emulator

834 views Asked by At

while I was trying to test my app on Pebble Emulator using Pebble SDK 3.0, I met a connection problem. The Emulator is working normally, but my host machine can't connect to QEMU virtual machine. So, the app wasn't fired up. See followings:

> pebble build
> pebble --debug install --emulator aplite
[INFO    ] Starting phone simulator...
[ERROR   ] Could not connect to phone at localhost:12342. Ensure that 'Developer Connection' is enabled in the Pebble app.

I don't know how to do further debugging on this issue.

2

There are 2 answers

1
Cliff McC On

According to the developer docs if you aren't using the native version of Python (eg. you installed Python with Homebrew or you are using Pyenv, etc.) you need to do the following - with your new version of Python active:

> brew remove boost-python
> brew install boost-python --build-from-source

This fixed things for me.

0
pablobart On

If your emulator is in a system folder that requires sudo access you will have to type:

sudo pebble --debug install --emulator aplite

You can find where your pebble bin folder is located with

which pebble