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:
Download the iSimulate SDK and the iPhone client app.
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.
- Open your Xcode project and, from the Project menu, select "Add to Project…".
- Choose "libisimulate.a", and then in the next screen click "Add.".
Confirm that your project has the CoreLocation framework linked. It most likely will already be linked. If not:
- In the "Groups & Files" panel, and under "Targets," right click on your project's target and select "Get Info."
- 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.
Confirm that "Other Linker Flags" has the value "-ObjC". It will most likely already have the value. To confirm:
- From the "Project" menu, select "Edit Project Settings."
- 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.
- 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.
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!
-
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?
-
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/ )