Starten einer GUI-App über die Befehlszeile

1573
Freeman

In iOS verwende ich den Befehl zum Starten, um eine GUI-Anwendung vom Terminal aus auszuführen (über SSH). Es schlägt jedoch mit dem folgenden Fehler fehl:

$ launch com.apple.MobileSafari 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 

Wie kann ich eine Anwendung mit diesem Befehl ausführen?

4
Dies liegt daran, dass auf dem ios jeweils nur eine Gui-App geöffnet sein kann. Dies ist jedoch nicht der richtige Ort für diese Frage. soandos vor 12 Jahren 1
Warum ist es geschlossen? Mowgli vor 11 Jahren 0

0 Antworten auf die Frage