logo头像

星星給予仰望者光芒

Frida Error note

本文于 455 天之前發表,文章内容可能已經過時。

  Frida Error

運行 frida-ps -Uai

就會噴出以下錯誤

1
2
3

(frida:12957): Frida-CRITICAL **: 10:47:11.886: file ../../../frida-core/lib/interfaces/session.vala: line 167: uncaught error: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “re.frida.HostSession12” on object at path /re/frida/HostSession (g-dbus-error-quark, 19)

Mac OS 版本為

1
Big Sur 11.0.1(20B50)

frida 版本為

1
2
frida --version
12.8.0

iOS frida 版本為

1
14.1.3

解法:

更新 frida 為匹配版本 frida-14.1.3

1
2
3
sudo -H pip3 install --upgrade frida
sudo -H pip3 install --upgrade frida-tools

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: frida in /Users/tinxie/Library/Python/3.7/lib/python/site-packages (12.10.4)
Collecting frida
Downloading frida-14.1.3.tar.gz (7.5 kB)
Building wheels for collected packages: frida
Building wheel for frida (setup.py) ... done
Created wheel for frida: filename=frida-14.1.3-cp37-cp37m-macosx_10_9_x86_64.whl size=13544424 sha256=c71c579feb9486ae6f83d0553f135165fa75b446a76640d4e1779b9ab8e34c9f
Stored in directory: /Users/tinxie/Library/Caches/pip/wheels/b3/c1/d8/881183b64dcb20af479a2282454d65390369bbe25cde6f055e
Successfully built frida
Installing collected packages: frida
Attempting uninstall: frida
Found existing installation: frida 12.10.4
Uninstalling frida-12.10.4:
Successfully uninstalled frida-12.10.4
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
frida-tools 5.3.0 requires frida<13.0.0,>=12.7.3, but you have frida 14.1.3 which is incompatible.
frida-tools 5.3.0 requires prompt-toolkit<3.0.0,>=2.0.0, but you have prompt-toolkit 3.0.5 which is incompatible.
Successfully installed frida-14.1.3

搞定收工!