Crittercism is the easiest way (that I've found) to add crash reporting to a RubyMotion application. This gem provides an even easier way to integrate the Crittercism SDK into your project.
Currently, this gem only supports iOS projects.
Add this line to your application's Gemfile:
And then execute:
$ bundle && rake pod:install
- Register for a Crittercism account.
- Register your app in Crittercism.
- Find your
API Keyon the App Settings page.
In your Rakefile, specify your Crittercism App ID and API Key:
::::App.setup do |app| # ... app.crittercism_app_id = "YOUR_APP_ID" app.crittercism_api_key = "YOUR_API_KEY" # ... end
Next, enable Crittercism within your
class AppDelegate def application(app, didFinishLaunchingWithOptions: ) .enableWithAppID("YOUR_APP_ID") # ... end end
Refer to the Crittercism docs for information on how to use Crittercism's other features.
This gem automatically uploads your dSYM file to Crittercism on every build. To disable dSYM upload on simulator builds, add this configuration to your Rakefile:
app.crittercism_disable_on_simulator_builds = true
If you want to manually upload your app's dSYM to Crittercism for symbolication, you can use the following Rake task:
$ rake crittercism:upload_dsym
Bug reports and pull requests are welcome on GitHub at https://github.com/andrewhavens/crittercism.
The gem is available as open source under the terms of the MIT License.