alibaba / alibaba/tidevice

tidevice 在调试开启了引导式访问的 iOS应用时会报错

Open
#248 0 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

错误堆栈:
[E 220818 21:57:00 _device:889] Launch failed: NSError(CODE:2 DOMAIN:com.apple.dt.deviceprocesscontrolservice INFO:{'NSLocalizedDescription': 'Request to launch '
'com.facebook.WebDriverAgentRunner.xctrunner '
'failed.',
'NSLocalizedFailureReason': 'The request to open '
'"com.facebook.WebDriverAgentRunner.xctrunner" '
'failed. : Failed to launch process with bundle '
'identifier '
"'com.facebook.WebDriverAgentRunner.xctrunner'.",
'NSUnderlyingError': NSError(CODE:1 DOMAIN:FBSOpenApplicationServiceErrorDomain INFO:{'BSErrorCodeDescription': 'RequestDenied',
'FBSOpenApplicationRequestID': '0x23f5',
'NSLocalizedDescription': 'The request to open '
'"com.facebook.WebDriverAgentRunner.xctrunner" '
'failed.',
'NSLocalizedFailureReason': 'The request was denied by service delegate '
'(SBMainWorkspace) for reason: Unspecified.',
'NSUnderlyingError': NSError(CODE:1 DOMAIN:FBSOpenApplicationErrorDomain INFO:{'NSLocalizedDescription': 'Guided Access active'})})})
Traceback (most recent call last):
File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Python310\Scripts\tidevice.EXE\__main__.py", line 7, in
File "C:\Python310\lib\site-packages\tidevice\__main__.py", line 951, in main
actions[args.subparser](args)
File "C:\Python310\lib\site-packages\tidevice\__main__.py", line 268, in cmd_xctest
d.xctest(args.bundle_id,
File "C:\Python310\lib\site-packages\tidevice\_device.py", line 963, in xctest
return self.xcuitest(bundle_id, target_bundle_id=target_bundle_id, logger=logger, env=env)
File "C:\Python310\lib\site-packages\tidevice\_device.py", line 1050, in xcuitest
_, pid = self._launch_app_runner(bundle_id, session_identifier,
File "C:\Python310\lib\site-packages\tidevice\_device.py", line 890, 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 at tidevice/_device.py, especially _launch_app_runner, xcuitest, and xctest, using the reported Guided Access launch failure as the reproduction case. Trace the cmd_xctest entry point in __main__.py and determine the expected behavior when Guided Access is active; done means that behavior is handled and covered by a regression check.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.