AirtestProject / AirtestProject/AirtestIDE
ios真机 执行start_app 报错
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 236
- Forks
- 40
- Métricas de merge de PR
- Métricas de PR pendientes
Descripción
在ide中执行start_app 正常,但是代码运行就下面的错
stop_app("com.apple.mobilenotes")
> start_app("com.apple.mobilenotes")
case_checklist/test_speaker_settings.py:1214:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/utils/logwraper.py:124: in wrapper
res = f(*args, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/api.py:194: in start_app
G.DEVICE.start_app(package, activity)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:47: in wrapper
return func(self, *args, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:819: in start_app
return TIDevice.start_app(self.udid, bundle_id)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:67: in wrapper
return func(*args, **kwargs)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/airtest/core/ios/ios.py:208: in start_app
BaseDevice(udid, Usbmux()).app_start(bundle_id=bundle_id)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tidevice/_device.py:725: in app_start
return ts.app_launch(bundle_id, args=args, kill_running=kill_running)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tidevice/_instruments.py:703: in app_launch
code = self.make_channel(self._SERVICE_PROCESS_CONTROL)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tidevice/_instruments.py:344: in make_channel
result = self.call_message(0, '_requestChannelWithCode:identifier:', aux)
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tidevice/_instruments.py:389: in call_message
return self.wait_reply(_id).result
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = , message_id = 2, timeout = 30.0
def wait_reply(self, message_id: int, timeout=30.0) -> DTXMessage:
"""
Raises:
ConnectionError, ServiceError
Refs: https://www.tornadoweb.org/en/stable/guide/async.html#asynchronous
"""
try:
ret = self._reply_queues[message_id].get(timeout=timeout)
if ret is None:
> raise ConnectionError("connection closed")
E ConnectionError: connection closed
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tidevice/_instruments.py:594: ConnectionError
**python 版本:** `python3.7`
**操作系统:** `Mac`
版本 12.6.7
Xcode版本是 14.0.1
**手机设备信息:**
- 手机型号: iPhone7P
- iOS 15.7.6
辛苦大佬看下怎么回事
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.