Search code examples
locationcllocationrubymotion

How to specify user location in ios simulator with Rubymotion


I'm developing an iPhone app with RubyMotion and I would like to specify the user location when testing my app in the simulator.

Is there a way to use a .gpx file as I would have done in xcode ?

Thank you for your help !


Solution

  • Now that RubyMotion supports launching the app with Instruments, you can try this method: http://www.cardinalsolutions.com/cardinal/blog/mobile/2013/02/testing_a_location-a.html (written by my friend Rachel Parsons).

    Ignore the xcode setup and skip down to where she talks about doing "automation" in Instruments.

    To launch your app in instruments, simply run rake profile.