不管哪种方式都启动不了APP 或者进入交互
- 进入不了交互模式
列出正在运行的应用
$ frida -U -a
11766     新华社   com.xinhuamm.d0001
进入交互模式
$ frida -U 新华社
或者
$ frida -U -p 11766
都报错了
Failed to attach: error reading data from TLS socket: The connection is broken
     ____
    / _  |   Frida 15.1.3 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPhone (id=00008030-001C19C12281802E)
Failed to attach: error reading data from TLS socket: The connection is broken
- 
- 直接启动进程
 
$ frida -U -f com.xinhuamm.d0001
也是报错
Failed to spawn: the request to open "com.xinhuamm.d0001" failed.
     ____
    / _  |   Frida 15.1.3 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to iPhone (id=00008030-001C19C12281802E)
Failed to spawn: the request to open "com.xinhuamm.d0001" failed.
- 
- 使用和Python交互脚本
 
device = frida.get_usb_device(1000) #连接usb设备 1000表示超时
pid = device.spawn(bundle) #启动指定bundleId的app
session = device.attach(pid)  #附加到app
script = session.create_script(source) #创建frida javaScript脚本
script.load() #load脚本到app进程中 这样即注入成功
device.resume(pid) #恢复app运行
也是报错
Traceback (most recent call last):
  File "hook.py", line 18, in <module>
    pid = device.spawn(bundle) #启动指定bundleId的app
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/frida/core.py", line 149, in spawn
    return self._impl.spawn(program, argv, envp, env, cwd, stdio, aux_options)
frida.NotSupportedError: the request to open "com.xinhuamm.d0001" failed.