Skip to content

Instantly share code, notes, and snippets.

@bengotow
Last active December 17, 2015 04:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bengotow/5552322 to your computer and use it in GitHub Desktop.
Save bengotow/5552322 to your computer and use it in GitHub Desktop.
Living document with information about adding the Spark Inspector framework into a RubyMotion project

###Add the Spark Inspector to a RubyMotion Project

Please give these instructions a try and let me know how it goes - it should be possible to get the Spark Inspector working. I don't own a copy of RubyMotion yet, but I identified the vendor_project options I think you'll need to include and link the Inspector's framework into your app.

UPDATE: @tbdr has confirmed that the instructions below work. Feel free to comment below if you discover issues!

UPDATE 2: @tbdr has published a gem motion-sparkinspector to make this easier. Source available https://github.com/TBD/motion-sparkinspector.

  1. Download the Spark Inspector from http://www.sparkinspector.com/

  2. Drag and drop the Spark Inspector application into your Applications folder

  3. In your Rakefile, add:

app.vendor_project '/Applications/Spark Inspector.app/Contents/Resources/Frameworks/SparkInspector.framework', :static, :products => ['SparkInspector'], :force_load => true, :headers_dir => 'Headers'

app.libs += ['/usr/lib/libz.dylib']

app.frameworks += ['QuartzCore']

  1. In your AppDelegate, add SparkInspector.enableObservation to the first line of your application:didFinishLaunchingWithOptions: method.

  2. Rake Clean

  3. Rake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment