Integrate Fabric/Crashlytics via CocoaPods

后端 未结 16 1510
鱼传尺愫
鱼传尺愫 2020-12-23 13:49

I try to integrate Fabric/Crashlytics via CocoaPods, my Podfile looks like this:

pod \'Fabric/Core\', \'1.2\'
pod \'Fabric/Crashlytics\', \'1.2\'
         


        
16条回答
  •  [愿得一人]
    2020-12-23 14:01

    Fabric now supports installation with CocoaPods: http://docs.fabric.io/ios/fabric/cocoapods.html

    If you are just looking for Crashlytics you can use these two pods:

    pod 'Fabric'
    pod 'Crashlytics'
    

    Along with adding the following build phase script (note: In case the path to your repo contains spaces, you will need the quotes):

    "${PODS_ROOT}"/Fabric/run  
    

    Run Script Build Phase

    If you are looking to use TwitterKit you will need to include:

    pod 'TwitterKit'
    

提交回复
热议问题