> For the complete documentation index, see [llms.txt](https://sagar-r-kothari.gitbook.io/blog/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sagar-r-kothari.gitbook.io/blog/_posts/2019-04-11-13-fabric.md).

# Sample Fastlane Script to upload to fabric/crashlytics

```python
desc "Push a new beta build To Fabric with Dev Config"
lane :fabric do
    ensure_git_status_clean
    increment_build_number(xcodeproj: "yourAppProj.xcodeproj")
    build_ios_app(
        scheme: "appTargetScheme",
        configuration: "AdHoc",
        export_method: "ad-hoc"
    )
    commit = last_git_commit
    crashlytics(
        api_token: "API_TOKEN_HERE",
        build_secret: "build_secret_here",
        emails: "some@email.com, a@b.com, abc@xyz.com",
        notes: commit[:message]
    )
    commit_version_bump(xcodeproj: "yourAppProj.xcodeproj")
    add_git_tag
    push_to_git_remote
end
```
