为什么在 aplite 模拟器上安装我的 Pebble 应用程序时出现错误?
Why do I get an error when installing my Pebble app on the aplite emulator?
我很难尝试将我的 Pebble 应用程序安装到 aplite 模拟器。我使用的是 Mac SDK,而不是 CloudPebble,当我输入时:
pebble install --emulator aplite --debug
我得到以下输出:
[DEBUG ] Initializing reader thread
[DEBUG ] Reader thread loaded on tid Thread-1
[DEBUG ] Phone ==> Watch: 000d000b035590fef60078055554432b32
[DEBUG ] Phone ==> Watch: 0001001000
[DEBUG ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG ] Phone ==> Watch: 00111770025ce319237d734d77af654e024035e51e
[DEBUG ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG ] Status: '\x00\x00\x00\x01'
[DEBUG ] WS Operation failed with response 16777216
[ERROR ] Failed to install 'build/xxx-xxx.pbw'
[DEBUG ] Phone info: 'pypkjs,0.0.0,qemu'
[INFO ] Starting new HTTP connection (1): 209.118.208.39
[DEBUG ] Analytics collection disabled due to lack of internet connectivity
知道哪里出了问题吗?
我使用 basalt
模拟器没有这样的问题。
更新 在 运行 pebble wipe
和 pebble login
之后,我得到的信息略有不同:
[DEBUG ] Phone ==> Watch: 00020031ff02
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): timeline-sync.getpebble.com
Traceback (most recent call last):
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/libexec/lib/python2.7/site-packages/gevent-1.0-py2.7-macosx-10.10-intel.egg/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/runner/websocket.py", line 173, in go_do_install
self.pebble.pebble.install_app_pebble_protocol(f.name)
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 1186, in install_app_pebble_protocol
[DEBUG ] Status: '\x00\x00\x00\x01'
watch_fw_version = self.get_watch_fw_version()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 662, in get_watch_fw_version
self.get_watch_version_info()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 645, in get_watch_version_info
version_info = self.get_versions()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 920, in get_versions
return EndpointSync(self, "VERSION").get_data()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 504, in get_data
raise PebbleError(None, "Timed out... Is the Pebble phone app connected/direct BT connection up?")
PebbleError: Timed out... Is the Pebble phone app connected/direct BT connection up? (ID:None) <Greenlet at 0x109490e10: go_do_install> failed with PebbleError
[DEBUG ] WS Operation failed with response 16777216
[ERROR ] Failed to install 'build/statium-pebble.pbw'
这是一个在 aplite 上偶尔会发生的一般性错误。这将在命令行 SDK 的 3.1 中修复。
您可以运行 pebble wipe
和 pebble login
解决问题,直到 3.1 正式修复。
我很难尝试将我的 Pebble 应用程序安装到 aplite 模拟器。我使用的是 Mac SDK,而不是 CloudPebble,当我输入时:
pebble install --emulator aplite --debug
我得到以下输出:
[DEBUG ] Initializing reader thread
[DEBUG ] Reader thread loaded on tid Thread-1
[DEBUG ] Phone ==> Watch: 000d000b035590fef60078055554432b32
[DEBUG ] Phone ==> Watch: 0001001000
[DEBUG ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG ] Phone ==> Watch: 00111770025ce319237d734d77af654e024035e51e
[DEBUG ] Watch ==> Phone: 00960010015553bdef76322e392d71656d75352d362d67663761343430350000000000000000000000663761343430350000fe0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005553bdef00000000000000000000000000000000000000000000000000000026658a035553bdef656e5f55530000015858585858585800
[DEBUG ] Status: '\x00\x00\x00\x01'
[DEBUG ] WS Operation failed with response 16777216
[ERROR ] Failed to install 'build/xxx-xxx.pbw'
[DEBUG ] Phone info: 'pypkjs,0.0.0,qemu'
[INFO ] Starting new HTTP connection (1): 209.118.208.39
[DEBUG ] Analytics collection disabled due to lack of internet connectivity
知道哪里出了问题吗?
我使用 basalt
模拟器没有这样的问题。
更新 在 运行 pebble wipe
和 pebble login
之后,我得到的信息略有不同:
[DEBUG ] Phone ==> Watch: 00020031ff02
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): timeline-sync.getpebble.com
Traceback (most recent call last):
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/libexec/lib/python2.7/site-packages/gevent-1.0-py2.7-macosx-10.10-intel.egg/gevent/greenlet.py", line 327, in run
result = self._run(*self.args, **self.kwargs)
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/runner/websocket.py", line 173, in go_do_install
self.pebble.pebble.install_app_pebble_protocol(f.name)
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 1186, in install_app_pebble_protocol
[DEBUG ] Status: '\x00\x00\x00\x01'
watch_fw_version = self.get_watch_fw_version()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 662, in get_watch_fw_version
self.get_watch_version_info()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 645, in get_watch_version_info
version_info = self.get_versions()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 920, in get_versions
return EndpointSync(self, "VERSION").get_data()
File "/usr/local/Cellar/pebble-sdk/3.0-beta12/Pebble/common/phonesim/pebblecomm/pebble.py", line 504, in get_data
raise PebbleError(None, "Timed out... Is the Pebble phone app connected/direct BT connection up?")
PebbleError: Timed out... Is the Pebble phone app connected/direct BT connection up? (ID:None) <Greenlet at 0x109490e10: go_do_install> failed with PebbleError
[DEBUG ] WS Operation failed with response 16777216
[ERROR ] Failed to install 'build/statium-pebble.pbw'
这是一个在 aplite 上偶尔会发生的一般性错误。这将在命令行 SDK 的 3.1 中修复。
您可以运行 pebble wipe
和 pebble login
解决问题,直到 3.1 正式修复。