Results 1 to 3 of 3

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: How to Launch Applications (Erica's launch crashes)

  1. #1
    Default How to Launch Applications (Erica's launch crashes)
    Hello,
    I have two questions but will focus on the second in another post.
    I just installed Cydia (via redsn0w on an iphone 3g) and an immensely impressed with all the work people have done. Kudos.

    Objective: To run a program around 7am everyday to listen to streaming music

    Q1: How can i launch a program from the commandline? I tried launch from Ericautilies and it crashes (see below)


    Q2: (Another post , but just asking) How do I install crontab on the iphone? I would setup a crontab entry for 7 am to play some music.

    Any help would be greatly appreciated.
    Regards
    Sha




    ==ERICA CRASH==

    mobile$ launch com.appple.Calculator
    2009-09-09 20:50:02.935 launch[99:903] *** Assertion failure in -[UIApplication init], /SourceCache/UIKit/UIKit-963.10/UIApplication.m:398
    2009-09-09 20:50:02.955 launch[99:903] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
    2009-09-09 20:50:02.970 launch[99:903] Stack: (
    808001701,
    805397928,
    807551015,
    811055191,
    814675896
    )

    iPhone:~ mobile$ openURL ericasadun.com
    2009-09-09 20:50:16.770 openURL[101:903] *** Assertion failure in -[UIApplication init], /SourceCache/UIKit/UIKit-963.10/UIApplication.m:398
    2009-09-09 20:50:16.789 openURL[101:903] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
    2009-09-09 20:50:16.804 openURL[101:903] Stack: (
    808001701,
    805397928,
    807551015,
    811055191,
    814675896
    )

  2. #2
    What's Jailbreak? iquanyin's Avatar
    Join Date
    Jan 2009
    Location
    eugeme, oregon
    Posts
    25
    Thanks
    6
    Thanked 0 Times in 0 Posts

    if you don't learn here, hacintosh or xsellize forums (or irc) are worth trying.

  3. #3
    Default Launch command via terminal
    I know this is an old forum but I wanted to give it a try anyways. I'm very new to iphone development and need this cleared up a little.

    I noticed in all my readings of erica utilities (ericasadun.com) they are using an older firmware version.

    However I currently have it installed on my 3GS IOS 4.1 phone and my objective is to use the launch command via terminal to launch an App. Can this be done?

    When I run the command "launch Docs.app" I get an error.
    Code:
    ..[$] <()> launch Docs.app
    2010-12-13 15:01:47.503 launch[203:107] *** Assertion failure in -[UIApplication init], /SourceCache/UIKit/UIKit-1262.60.3/UIApplication.m:510
    2010-12-13 15:01:47.521 launch[203:107] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'There can only be one UIApplication instance.'
    *** Call stack at first throw:
    (
    	0   CoreFoundation                      0x344aaed3 __exceptionPreprocess + 114
    	1   libobjc.A.dylib                     0x33975811 objc_exception_throw + 24
    	2   CoreFoundation                      0x344aad15 +[NSException raise:format:arguments:] + 68
    	3   Foundation                          0x3329b32f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 62
    	4   UIKit                               0x31ace9a9 -[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'
    [1]    203 abort      launch Docs.app
    Is this becuase I'm missing UIKit Tools or Mobile Substrate?

    I don't understand why these two libs are missing from the repos. However I found the deb file from Index of /cydia/debs/ is it safe to download and install via terminal?

    Or I shouldn't install them becuase they are in my current firmware version?

    Any help would be gratefully appreciated.

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •