Run iPhone/iPad Simulator for Continuous Integration

I am attempting to run the iOS simulator from the command line. I have found the location where the iPhone Simulator can be run from. My question is whether or not it can receive parameters to specify which device should be launched and what app it should run.

$ ./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator

Does anyone know if there are tricks to this. Knowing more about this would really help with our Continuous Integration process.


We now use WaxSim to automate our iOS applications during CI Builds

Answers


Use the -SimulateApplication argument to run your executable in the simulator (executable inside the .app bundle)

(you could also compile the project from the command-line like this:) xcodebuild -project Test.xcodeproj -arch i386 -sdk iphonesimulator

Then for example:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone\ Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication Test.app/Test

or

./Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app/Contents/MacOS/iPhone\ Simulator -SimulateApplication Test.app/Test


Need Your Help

Where is boost's managed_external_buffer defined?

c++ boost interprocess

In boost/interprocess/managed_external_buffer.hpp, a template class basic_managed_external_buffer is defined, yet I can't manage to find the actual definition of the managed_external_buffer class (...

How to connect Google Maps to my tables or resources

ruby-on-rails ruby google-maps

i wanted to know if this is even possible. I'm trying to figure out how to connect a resource to the Google Maps API. I am trying to do something like Yelp. This is what i mean: