Skip to content

Conversation

0xBl4nk
Copy link

@0xBl4nk 0xBl4nk commented Oct 21, 2025

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

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 sensepost#740

Tested-on:
- Frida 17.0.7
- iOS 17.x (jailbroken device)
- DVIA-v2 test application
@0xBl4nk 0xBl4nk force-pushed the fix/frida-17-objc-reference-error branch from f9173f2 to dd448a7 Compare October 21, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] ReferenceError: ‘ObjC’ is not defined when using Frida 17.0.7 (both CLI and server)

1 participant