###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.
-
Download the Spark Inspector from http://www.sparkinspector.com/
-
Drag and drop the Spark Inspector application into your Applications folder
-
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']
-
In your AppDelegate, add
SparkInspector.enableObservation
to the first line of yourapplication:didFinishLaunchingWithOptions:
method. -
Rake Clean
-
Rake