Skip to content

Commit dd448a7

Browse files
0xBl4nk61481946+0xBl4nk@users.noreply.github.com
authored andcommitted
fix: correct ObjC reference in Frida 17.x compatibility layer
Fixes a typo in the Frida version compatibility check where globalThis.Java was incorrectly assigned instead of globalThis.ObjC. This typo caused a ReferenceError when the agent attempted to use ObjC methods on iOS devices running Frida 17.x, specifically when calling env_runtime() and other iOS-specific functions. The fix ensures that when globalThis.ObjC exists (Frida < 17), it is correctly assigned to the ObjC variable instead of Java. Fixes #740 Tested-on: - Frida 17.0.7 - iOS 17.x (jailbroken device) - DVIA-v2 test application
1 parent e282ea0 commit dd448a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/src/ios/lib/libobjc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import ObjC_bridge from "frida-objc-bridge";
22

33
let ObjC: typeof ObjC_bridge;
44
// Compatibility with frida < 17
5-
if (globalThis.ObjC) {
6-
ObjC = globalThis.Java
5+
if (globalThis.ObjC) {
6+
ObjC = globalThis.ObjC
77
} else {
88
ObjC = ObjC_bridge
99
}

0 commit comments

Comments
 (0)