Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In iOS I'm using the launch command to execute a GUI application from the terminal (via SSH). However, it fails with the following error:

$ launch
2011-07-28 18:20:11.433 launch[6943:707] *** Assertion failure in -[UIApplication init], /SourceCache/UIKit/UIKit-1448.89/UIApplication.m:528
2011-07-28 18:20:11.443 launch[6943:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
*** Call stack at first throw:
    0   CoreFoundation                      0x325be64f __exceptionPreprocess + 114
    1   libobjc.A.dylib                     0x34f96c5d objc_exception_throw + 24
    2   CoreFoundation                      0x325be491 +[NSException raise:format:arguments:] + 68
    3   Foundation                          0x34ded573 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
    4   UIKit                               0x32144181 -[UIApplication init] + 128
    5   launch                              0x00001d90 main + 252
    6   launch                              0x00001bec _start + 312
    7   launch                              0x00001a88 start + 24
terminate called after throwing an instance of 'NSException'
Abort trap: 6

How can I execute an application using this command?

share|improve this question

closed as off topic by soandos, studiohack Aug 17 '11 at 1:47

Questions on Super User are expected to relate to computer software or computer hardware within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This is because the ios can only have one Gui app open at a time. However, this is not the place for this question. – soandos Aug 7 '11 at 8:17
Why is it closed? – Mowgli Feb 5 '13 at 13:34

Browse other questions tagged .