Carthage: Use Fabric, Crashlytics and Answers with Carthage

Created on 29 Jun 2017  路  22Comments  路  Source: Carthage/Carthage

Below are binary definitions for Fabric, Answers and Crashlytics.
Each JSON points to the latest zip file directly provided by Fabric.

Just add the following to your Cartfile.

binary "https://building42.github.io/Specs/Carthage/iOS/Fabric.json"
binary "https://building42.github.io/Specs/Carthage/iOS/Answers.json"
binary "https://building42.github.io/Specs/Carthage/iOS/Crashlytics.json"

Update July 10, 2018: the urls have been changed!

I've mailed the Fabric team asking them if they're willing to maintain the JSONs.

Most helpful comment

@Zyphrax I think this should be added some where so that is it known there is some support. Right now this is only found through Google search at best

All 22 comments

Most likely you won't need the Answers framework because it seems to be integrated in the Crashlytics framework. But it is available if you want to use it without Crashlytics.

Don't forget to add the items to your Plist. For more info see:
https://fabric.io/kits/ios/crashlytics/install
https://fabric.io/kits/ios/answers/install

Do not add the frameworks to the Carthage copy script!
Otherwise archiving your app will fail with a Mach-O error about entitlements.

Can I maybe create a wiki for this? A lot of people are still using CocoaPods because Fabric doesn't officially support Carthage. Otherwise they can find this post for more information.

@Zyphrax I think this should be added some where so that is it known there is some support. Right now this is only found through Google search at best

FYI @Zyphrax - I had to install the Answers framework in order to successfully reference it within my code, but only had to import Crashlytics as a module.

Other than that, works well! Thanks.

@Zyphrax Is it possible to just point to a GitHub releases to drive this rather than a separately hosted son file?

@dmiluski Carthage needs a JSON file to describe the versions of the framework. As far as I know it isn't possible to directly use a zip file or GitHub releases page reference.

Hello !

Is it possible to provide JSON files for MacOS release ?

Thanks !

Yes. Please refer to the Carthage documentation about the binary dependency specifier.

When using gym from fastlane I'm getting the following error:
screen shot 2018-01-16 at 12 15 29 pm

Thanks @Zyphrax for providing this! Very useful. Btw, did you receive response from Fabric? if they are going to maintain those JSONs

@rgkobashi I've brought the specs to the attention of the Fabric team, but they don't seem to have made steps to host their own Carthage specs yet. For now I guess my repo will have to do 馃檪

Hi @Zyphrax , I was attempting to provide a solution in Carthage here to drive spec creation from Github api for releases?
https://github.com/Carthage/Carthage/pull/2360

@dmiluski For Fabric / Crashlytics that would be difficult. There doesn't seem to be a nice central repository for their releases. They seem to host the releases on their Amazon S3 infrastructure, not something like GitHub.

@prsolucoes Sorry I forgot about this post here in the Carthage issues. Because of the different platforms I had to do a bit of a clean up of the repository. The correct (and now shorter) urls are these:

binary "https://building42.github.io/Specs/Carthage/iOS/Fabric.json"
binary "https://building42.github.io/Specs/Carthage/iOS/Answers.json"
binary "https://building42.github.io/Specs/Carthage/iOS/Crashlytics.json"

After updating the urls, it should be enough to do carthage update --cache-builds.

You can always find the latest info at: https://building42.github.io/Specs/
I've also updated the first post in this topic.

Sorry for the incovenience!

@Zyphrax

I need put the answers framework?

Thanks.

@prsolucoes The Answers framework is optional. Crashlytics does require Fabric.

Thanks. Im updating all. Until now it is working. If i have any problems, i will post here.

Thanks for the post...also came upon this issue last night but have resolved now. Thanks!

@Zyphrax How we can resolve it?
Crashlytics has moved the submit binary outside of Crashlytics.framework directory as of 3.4.1. Please change :crashlytics_path to <PODS_ROOT>/Crashlytics/submit

Submit uploaded .ipa, i think we cant remove this message, because its trying found PODS

@SeRG1k17 See https://github.com/Building42/Specs/issues/23 for more information

Was this page helpful?
0 / 5 - 0 ratings

Related issues

josercc picture josercc  路  3Comments

CAPIStkidd picture CAPIStkidd  路  3Comments

justinmakaila picture justinmakaila  路  4Comments

willhains picture willhains  路  3Comments

pmhood picture pmhood  路  3Comments