New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Fabric, Crashlytics and Answers with Carthage #2036

Closed
Zyphrax opened this Issue Jun 29, 2017 · 20 comments

Comments

Projects
None yet
10 participants
@Zyphrax

Zyphrax commented Jun 29, 2017

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.

@mdiep mdiep closed this Jun 29, 2017

@Zyphrax

This comment has been minimized.

Zyphrax commented Jun 30, 2017

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.

@Prince2k3

This comment has been minimized.

Prince2k3 commented Jul 26, 2017

@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

@eyeoashephard

This comment has been minimized.

eyeoashephard commented Sep 11, 2017

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.

@dmiluski

This comment has been minimized.

dmiluski commented Nov 7, 2017

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

@Zyphrax

This comment has been minimized.

Zyphrax commented Nov 8, 2017

@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.

@ncatta

This comment has been minimized.

ncatta commented Nov 13, 2017

Hello !

Is it possible to provide JSON files for MacOS release ?

Thanks !

@mdiep

This comment has been minimized.

Member

mdiep commented Nov 13, 2017

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

@RafaelPlantard

This comment has been minimized.

RafaelPlantard commented Jan 16, 2018

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

@rgkobashi

This comment has been minimized.

rgkobashi commented Feb 27, 2018

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

@Zyphrax

This comment has been minimized.

Zyphrax commented Feb 27, 2018

@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 🙂

@dmiluski

This comment has been minimized.

dmiluski commented Feb 27, 2018

Hi @Zyphrax , I was attempting to provide a solution in Carthage here to drive spec creation from Github api for releases?
#2360

@Zyphrax

This comment has been minimized.

Zyphrax commented Feb 28, 2018

@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

This comment has been minimized.

@Zyphrax

This comment has been minimized.

Zyphrax commented Jul 10, 2018

@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!

@prsolucoes

This comment has been minimized.

prsolucoes commented Jul 10, 2018

@Zyphrax

I need put the answers framework?

Thanks.

@Zyphrax

This comment has been minimized.

Zyphrax commented Jul 10, 2018

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

@prsolucoes

This comment has been minimized.

prsolucoes commented Jul 10, 2018

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

@jiebe

This comment has been minimized.

jiebe commented Jul 11, 2018

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

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