Titanium Community Questions & Answer Archive

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

iSimulate Integration

Just a note for the community… You can use iSimulate in your project to use multi-touch and the accelerometer in the iPhone Simulator, as originally posted by Martin Bowling in the old forum.

I have tested and confirmed this for 1.0.

Here's a quick primer:

  1. Download the iSimulate SDK and the iPhone client app.

  2. Add the iSimulate library file named "libisimulate.a" to your Xcode project. Btw, your XCode project is in the "build/iphone" directory in your project folder.

    1. Open your Xcode project and, from the Project menu, select "Add to Project…".
    2. Choose "libisimulate.a", and then in the next screen click "Add.".
  1. Confirm that your project has the CoreLocation framework linked. It most likely will already be linked. If not:

    1. In the "Groups & Files" panel, and under "Targets," right click on your project's target and select "Get Info."
    2. Then, in the "General" tab, look for "CoreLocation.framework" in the "Linked Libraries" container. If it's not listed, click the "+" button below the "Linked Libraries" list and select the CoreLocation framework.
  1. Confirm that "Other Linker Flags" has the value "-ObjC". It will most likely already have the value. To confirm:

    1. From the "Project" menu, select "Edit Project Settings."
    2. At the top of the "Build" tab select "All Configurations" in "Configurations" dropdown list, type "Other Linker Flags" in search box and set the value of the "Other Link Flags" to -ObjC.
  1. Now, "Build and Go" your project with the Simulator as the Active SDK.

When the simulator runs, run the client app on your iPhone with it tethered to your computer.

That's it.

— asked March 16th 2010 by TZ Martin
  • accelerometer
  • isimulate
  • simulator

3 Answers

  • To those wondering about iSimulate integration: 1.3 seems to have fixed all problems with the new way of building / compiling xCode based apps.

    Simply add libisimulate.a to your Project, compile it, start up iSimulate on the iPhone and play!

    — answered May 14th 2010 by Kerim Satirli
  • Thanks Terry good to know this works in 1.0. Do you need to exclude anything when you do your final build to provide to Apple?

    — answered March 16th 2010 by Ben Bahrenburg
  • Sorry to dig up an old thread guys, looks like something changed with more recent versions of Titanium.

    I'm unable to get this working in 1.2.1 when I build from within xCode - I get the red error screen telling me "app.js" is missing, even though it is there. Building from within Titanium works just fine, but removes the libisimulate.a every time.

    Ben: you've probably found out by now, but you don't need to change anything when building a distribution version of your app.

    Quote from vimov:
    The iSimulate SDK library will be linked to only when the application is compiled for the iPhone Simulator. When you build the application and install it on a device, the iSimulate SDK would not have been compiled into it. (from: http://www.vimov.com/isimulate/faq/ )

    — answered May 9th 2010 by Kerim Satirli
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.