自己通过xcodebuild build-for-testing命令打包出来的ipa时间一长再次启动tidevice xctest -B就会报错,重新打包才行,这是什么原因呢?有什么办法能解决吗?
- Dominant language
- Python
- Stars
- 2.6k
- Forks
- 469
- PR merge metrics
- No merged PRs in 30d
Description
我试过几个App和证书都是有这样的问题,这是什么原因?要怎么解决呢?
F:\Autotest\Add_devices>tidevice xctest -B xxx.xxx.xctrunner
[I 210813 15:53:01 _device:964] BundleID: xxx.xxx.xctrunner
[I 210813 15:53:01 _device:967] ProductVersion: 11.4.1
[I 210813 15:53:01 _device:969] DeviceIdentifier: xxxxxxxxxxxxxxx
[I 210813 15:53:01 _device:808] SignIdentity: 'Apple Development: xxxxxxxxxxxx'
[I 210813 15:53:01 _device:814] CFBundleExecutable: xxxxxx-Runner
[I 210813 15:53:01 _device:845] AppContainer: /private/var/mobile/Containers/Data/Application/207159FE-F718-48F6-BC8F-2EC1DFE348C7
[E 210813 15:53:02 _device:882] Launch failed: NSError(CODE:1 DOMAIN:DTXMessage INFO:{'DTXExceptionKey': 'The operation couldn’t be completed. '
'(FBSOpenApplicationErrorDomain error 1.) : Failed to '
'launch process with bundle identifier '
"'xxx.xxx.xctrunner'"})
Traceback (most recent call last):
File "c:\python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "c:\python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\python37\Scripts\tidevice.exe\__main__.py", line 9, in
File "c:\python37\lib\site-packages\tidevice\__main__.py", line 720, in main
actions[args.subparser](args)
File "c:\python37\lib\site-packages\tidevice\__main__.py", line 226, in cmd_xctest
env=env)
File "c:\python37\lib\site-packages\tidevice\_device.py", line 1042, in xctest
env=env, logger=xclogger)
File "c:\python37\lib\site-packages\tidevice\_device.py", line 883, 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 at _launch_app_runner and the cmd_xctest entry point in tidevice/__main__.py, then reproduce the delayed launch failure using the xcodebuild build-for-testing output described here. Done means identifying why the previously packaged runner stops launching and documenting or implementing a verified way to avoid the failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, python
- Domain
- devtools, mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100