Hi guys. How to pass custom environment variables to iOS UI app?
openpackage from Cydia (com.conradkramer.open):
root# DYLD_PRINT_STATISTICS=YES open com.facebook.Facebook
But unfortunately DYLD_PRINT_STATISTICS just prints stats on ‘open’ process itself, not on the com.facebook.Facebook.
Direct launching from terminal is not possible too (returns ‘Killed: 9’)
root# DYLD_PRINT_STATISTICS=YES /private/var/containers/Bundle/Application/B06C0DE7-57FD-4CB2-8E5D-FC685F0FBB6B/Facebook.app/Facebook
There are SpringBoardServices-functions to launch apps programmatically, like SBSLaunchApplicationWithIdentifier, SBSLaunchApplicationWithIdentifierAndLaunchOptions, SBSLaunchApplicationForDebugging. But they are undocumented and I don’t know how to pass env vars to them (if ever possible).
There is idevicedebug (on the computer side). I tried it too:
mac$ devicedebug --env DYLD_PRINT_STATISTICS=YES run com.facebook.Facebook
Out of luck too. It crashes with
ERROR: failed to get the task for process 10517. Seems that host-side
idevicedebugcannot be used to debug sandboxed and fairpayed apps.
Can anybody help?