关于cycript -p


#1

需求: cycript -p [进程号] 出现问题,希望找到原因并解决。
日志:
Simbolde-iPhone:~ root# ps -e | grep SpringBoard
2437 ?? 0:26.49 /System/Library/CoreServices/SpringBoard.app/SpringBoard
2484 ttys000 0:00.01 grep SpringBoard
Simbolde-iPhone:~ root# cycript -p 2484
MS:Error: _krncall(task_for_pid(self, pid, &task)) =5
*** _assert(status == 0):…/Inject.cpp(143):InjectLibrary
Simbolde-iPhone:~ root# cycript -p SpringBoard
cy#
操作步骤:
1.获取SpringBoard的PID
2.cycript -p 2484报错
3.cycript -p SpringBoard正常
环境: iOS10.02


#2

cycript -p 2437


#3

2484 ttys000 0:00.01 grep SpringBoard