alibaba / alibaba/tidevice

运行后报tidevice.exceptions.MuxError: Launch failed

Open
#172 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
469
PR merge metrics
No merged PRs in 30d

Description

CFBundleExecutable: WebDriverAgentRunner-Runner
[I 211218 18:59:46 _device:841] AppContainer: /private/var/mobile/Containers/Data/Application/8621A7FE-15AB-4ADB-A763
[E 211218 18:59:46 _device:878] Launch failed: NSError(CODE:2 DOMAIN:com.apple.dt.deviceprocesscontrolservice INFO:{'NSLocalizedDescription': 'Request to launch '
'com.facebook.WebDriverAgentRunner123.xctrunner '
'failed.',
'NSLocalizedFailureReason': 'The operation couldn’t be completed. (null) : '
'Failed to launch process with bundle identifier '
"'com.facebook.WebDriverAgentRunner123.xctrunner'.",
'NSUnderlyingError': NSError(CODE:1 DOMAIN:FBSOpenApplicationErrorDomain INFO:{'BSErrorCodeDescription': 'Unspecified', 'NSLocalizedFailureReason': '(null)'})})
Traceback (most recent call last):
File "D:\ProgramFiles\Python\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "D:\ProgramFiles\Python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\ProgramFiles\Python\lib\site-packages\tidevice\__main__.py", line 747, in
main()
File "D:\ProgramFiles\Python\lib\site-packages\tidevice\__main__.py", line 742, in main
actions[args.subparser](args)
File "D:\ProgramFiles\Python\lib\site-packages\tidevice\__main__.py", line 237, in cmd_xctest
d.xctest(args.bundle_id,
File "D:\ProgramFiles\Python\lib\site-packages\tidevice\_device.py", line 1036, in xctest
pid = self._launch_app_runner(bundle_id, session_identifier,
File "D:\ProgramFiles\Python\lib\site-packages\tidevice\_device.py", line 879, in _launch_app_runner
raise MuxError("Launch failed")
tidevice.exceptions.MuxError: Launch failed

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tidevice/_device.py around _launch_app_runner at line 879 and follow the xctest entry point in tidevice/__main__.py around cmd_xctest. Reproduce the WebDriverAgentRunner launch failure with the reported bundle identifier and inspect the related comments for environment details. Done means identifying a reproducible cause and documenting or testing the appropriate fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, python
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.