Source Code Patching
In order to start analyzing and managing an iOS app without jailbreak, the app's source code itself needs to be patched to load the FridaGadget.dylib on start. In these cases, you can simply load the FridaGadget.dylib as part of the Xcode project and deploy it on an iOS device or simulator.
Add FridaGadget.dylib to project
To add FridaGadget.dylib to project in XCode:
Create a Frameworks folder in the project root.
$ mkdir Frameworks $ cd FrameworksDownload FridaGadget.dylib from here and extract it.
$ curl -Lo FridaGadget.dylib.xz https://github.com/frida/frida/releases/download/<version>/frida-gadget-<version>-ios-universal.dylib.xz $ unxz FridaGadget.dylib.xzGo to the project's root and select the
Build Phases, find the section titleLink Binary With Librariesand drag the dylib from the Frameworks folder on the left of Xcode to the existing list.

Go to the project's root and select the
General, find the section titleFrameworks, Libraries, and Embedded Contentand set FridaGadget.dylib in theEmbedcolumn toEmbed & Sign.

Build & Deploy
You can now build the project and deploy it to an iOS device or simulator.

Last updated