Before iOS 6.x, I used open package_id
to open a app from command line on a iOS device.
On iOS 6.x if i use this command SpringBoard crashes.
Open is available from BigBoss and the author is Conrad Kramer.
Is there an alternative or a fix for the open
command from BigBoss?
Update:
It looks like the original
/usr/bin/open
has been updated for iOS 6 on Cydia, so I recommend you try that first.Original Answer:
I miss
open
, too! But, until it gets updated for iOS 6, you can just build your own non-graphical app (just amain
program, not aUIApplicationMain()
) and do the same thing yourself.I'll skip over parsing command line arguments from
int main(int argc, char *argv[]
, but once you know the Bundle Id (CFBundleIdentifier
) of the app you want to open, open the SpringBoardServices private framework, and use it to launch the app:This code requires the
com.apple.springboard.launchapplications
entitlement for your command line program to use it successfully, as themobile
user. See here for adding an entitlement. You'd need an entitlements.xml file for your executable, like this:And then sign it with
Note: I haven't tested this, but this answer states that an alternative to using entitlements is to run the command as root.