If you need to hook to modify functions, add authorization pop-up windows, etc. on iOS, you need to inject a dynamic library (dylib) to add functions
Here is a simple tutorial for beginners, the details are I won’t write it anymore
What you need to prepare:
1. mac (virtual machine is also acceptable)
2. optool
When ready Start injection
Drag optool into the terminal, enter the injection command, and finally drag in the app main file and press Enter to complete the injection