ios - Xcode 5 iOS7 - ScriptAgent 进程太多

标签 ios xcode ios-simulator xcode5 xcode-instruments

使用 xcode-instruments 运行 UIAutomation 脚本会创建重复的进程,如下所示:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/Developer/usr/bin/ScriptAgent

这些进程无法被杀死,只有系统重启才能杀死它们。 此外,脚本停止并打印这些行:

2013-10-23 14:54:57.850 ScriptAgent[35342:2d07] CLTilesManagerClient: initialize, sSharedTilesManagerClient 
2013-10-23 14:54:57.850 ScriptAgent[35342:2d07] CLTilesManagerClient: init 
2013-10-23 14:54:57.851 ScriptAgent[35342:2d07] CLTilesManagerClient: reconnecting, 0x962eef0

知道如何解决这个问题吗?

最佳答案

你只需要杀死这些僵尸进程的父进程,它们就会消失。这至少适用于 Mavericks 和 Xcode 5.1:

$ ps -edf | \
grep [x]pcproxy_sim | awk '{print $3}' | \
sort | uniq | \
xargs -I{} echo "kill -9 {}" | sh

第一行列出所有进程。第二行提取xpcproxy_sim 进程的PPID 列(父PID)。第三行删除重复条目,最后一行生成杀死每个进程的命令并将其传递给 shell 执行。

关于ios - Xcode 5 iOS7 - ScriptAgent 进程太多,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19515178/

相关文章:

c++ - ld : symbol(s) not found for architecture i386 IOS c++

ios - 如何在 UILongPressGestureRecognizer iOS Swift 4 中传递多个参数?

ios - 在同一数据库上使用两个 FMDB 队列(读/写)

iphone - 在 iPhone map 中的 route 添加注释

ios - Xcode iOS : check if user is logged in and show different views if not

ios - AVAudioPlayer 不会为一个 mp3 播放音频,但会为其他 mp3 播放音频?

ios - 将gps坐标转换为AR中的opengl字

ios - Storyboard中缺少嵌入 segue 选项

safari - 在导航上保持 safari 远程调试打开

ios - iOS 上的 NSZombie 不在模拟器中