通过 Appium 并行运行自动化测试(8 个并发 IOS 模拟器)后,我无法再运行模拟器了。原因仍然不清楚。我尝试重新安装Xcode(v10.1 v9.4),恢复Mac OS,使用killall -10 com.apple.CoreSimulator.CoreSimulatorService
。当我在那里运行模拟器时,它会提示一条错误消息:
模拟器意外退出
Process: Simulator [1439]
Path: /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator
Identifier: com.apple.iphonesimulator
Version: 10.1 (877)
Build Info: Indigo-877000000000000~218
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Simulator [1439]
User ID: 502
Date/Time: 2019-01-12 16:19:15.922 +0300
OS Version: Mac OS X 10.14.2 (18C54)
Report Version: 12
Bridge OS Version: 3.3 (16P53132a)
Anonymous UUID: 746485C4-4AA2-44F7-C299-5A58EB4FD0C5
Time Awake Since Boot: 170 seconds
System Integrity Protection: enabled
Crashed Thread: 7 Dispatch queue: com.apple.iphonesimulator.deviceCoordinatorQueue.457B5DF1-903C-41E0-A9B7-42D97AC96569
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000070000b351fe8
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Bus error: 10
Termination Reason: Namespace SIGNAL, Code 0xa
Terminating Process: exc handler [1439]
VM Regions Near 0x70000b351fe8:
Stack 000070000b2cf000-000070000b351000 [ 520K] rw-/rwx SM=COW thread 6
--> STACK GUARD 000070000b351000-000070000b352000 [ 4K] ---/rwx SM=NUL stack guard for thread 7
Stack 000070000b352000-000070000b3d4000 [ 520K] rw-/rwx SM=COW thread 7
有趣的一点:当我运行Appium测试时,仍然存在相同的错误,但测试已通过,因为看起来模拟器仍然可以无头工作。
我在那里发现了大致相同的问题,但 https://shirome9.wordpress.com/2016/11/27/xcode-quit-unexpectedly/有点不同
你有什么想法吗?
我不知道问题的真正原因,但是通过重新启动并使用不同的模拟器打开,我得到了解决。