Integrate Fabric/Crashlytics via CocoaPods

后端 未结 16 1438
鱼传尺愫
鱼传尺愫 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:09

    As mentioned in the official documentation, just update your pods repo

    pod repo update
    
    0 讨论(0)
  • 2020-12-23 14:11

    Try:

    1. Remove Fabric and Crashlytics in podfile.

    2. pod install

    3. Add Fabric and Crashlytics to podfile again

    4. pod install

    5. Add Run script like above answer.

    Hope it help.

    0 讨论(0)
  • 2020-12-23 14:12

    I had to use a different path in Xcode 7 using CocoaPods 0.39:

    ${SRCROOT}/Pods/Fabric/Fabric.framework/run <key> <secret>
    

    podfile:

    pod 'Crashlytics'
    pod 'Fabric'
    

    I also just updated Fabric to 3.4.1, and that path ^ changed slightly to Fabric/run. Make sure you check the bits after ${SRCROOT} carefully and compare it to what the Fabric app recommends. See the changelog for 3.4.1 for details.

    0 讨论(0)
  • 2020-12-23 14:12

    in

    Fabric (1.6.7)
    

    You should change path from

    "${PODS_ROOT}/Fabric/Fabric.framework/run" YOUR_API_KEY YOUR_BUILD_SECRET
    

    to

    "${PODS_ROOT}/Fabric/run"  YOUR_API_KEY YOUR_BUILD_SECRET
    
    0 讨论(0)
提交回复
热议问题