Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

iPhone Simulator just won't start

I've got Appcelerator 1.2.1, SDK 3.2.4 and running on OS X 10.6.4. The simulator just won't start from within Titanium Developer.

This is the log window and then I've got the option to press "launch" again…
[INFO] Compiling JavaScript…one moment
[INFO] No JavaScript errors detected.
[INFO] One moment, building …
[INFO] Titanium SDK version: 1.4.1.1
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.1
… and then it just stops here…

(Kitchen Sink gives me a lot of javascript errors as well)

The simulator can be started independently and works with Xcode.

I've tried to empty the build-folders, but with no luck. I've reinstalled all applications several times.

Anyone? I would be most grateful! :)

— asked October 10th 2010 by Erlend Våge
  • build
  • iphone
  • kitchen
  • simulator
  • sink
0 Comments

3 Answers

  • Check the build.log in build/iphone/build, chances are there is an error in that file. If you still need help post the error and I'll see what I can do.

    — answered October 10th 2010 by Brian Raymond
    permalink
    0 Comments
  • Open Finder and pick Go/Utilities and run the Activity Monitor. Do you see more than one instance of an app called iphonesim running? I had that happen and it made running the simulator difficult/buggy. I just killed the instances and tried again but you can try a reboot. I do know that even now I have to click the Launch button twice from time to time and it eventually runs.

    Once the simulator window opens, just leave it open and relaunch the app by using its icon on the dashboard of the simulator. The simulator uses relative paths that link back to your source for the project so I rebuild/launch isn't necessary unless you change SDK's.

    The errors in the Kitchen Sink are…umm… normal and isn't affecting the building and testing of it.

    — answered October 10th 2010 by John McKnight
    permalink
    0 Comments
  • I also am having this problem. Here's what the build error is saying:

    ** BUILD FAILED **
    
    
    The following build commands failed:
    TestGame-iPad:
        CompileC build/TestGame.build/Debug-iphonesimulator/TestGame-iPad.build/Objects-normal/i386/TiWindowProxy.o /Users/admin/dev/TestGame/build/iphone/Classes/TiWindowProxy.m normal i386 objective-c com.apple.compilers.gcc.4_2
    (1 failure)
    
    EXIT CODE WAS: 1
    
    Exception detected in script:
    Traceback (most recent call last):
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.2/iphone/builder.py", line 868, in main
        execute_xcode("iphonesimulator%s" % iphone_version,["GCC_PREPROCESSOR_DEFINITIONS=__LOG__ID__=%s DEPLOYTYPE=development TI_DEVELOPMENT=1 DEBUG=1 TI_VERSION=%s" % (log_id,sdk_version)],False)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.2/iphone/builder.py", line 790, in execute_xcode
        output = run.run(args,False,False,o)
      File "/Library/Application Support/Titanium/mobilesdk/osx/1.4.2/iphone/run.py", line 31, in run
        sys.exit(rc)
    SystemExit: 1
    
    — answered November 29th 2010 by Tyler Johnson
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.