I try to integrate Fabric/Crashlytics via CocoaPods, my Podfile looks like this:
pod \'Fabric/Core\', \'1.2\'
pod \'Fabric/Crashlytics\', \'1.2\'
I had the same problem, use the $PODS_ROOT
environment variable which points to your Pods folder; be sure to quote it in case you have spaces in your path; so instead of
./Pods/Fabric/Fabric.framework/run YOUR_API_KEY YOUR_BUILD_SECRET
use
"$PODS_ROOT"/Fabric/Fabric.framework/run YOUR_API_KEY YOUR_BUILD_SECRET
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 <API Key> <Build Secret>
If you are looking to use TwitterKit
you will need to include:
pod 'TwitterKit'
For my project, this worked:
"${PODS_ROOT}/Fabric/Fabric.framework/run" YOUR_API_KEY YOUR_BUILD_SECRET
Delete podfile.lock and manifest.lock, then re-run podfile install, then continue from there using the "easy" configure app from Fabric.
There are some very nice screen-shot slide-show demos on Fabric.io's site. I found them with Google - don't see where they are accessible from the site.
FYI, if you're having issues, it's not you :). Basically (as of August 3rd), every step of the Fabric onboard process is potentially broken.
Hopefully these will all get fixed soon.
Warning: most of the answers you will find via a search will be outdated, because apparently fabric.io changed a lot on July 15th, but if you scroll down anything you find on stack/o, you might find a newer answer.
Typically I would recommend not going against the grain and using the Fabric App for installation. Its hands down the simplest integration tool I've ever seen given the complexity they are providing.
That being said, since you're dead set on using Cocoapods, the only way to get things going would be the following
If you update to Fabric
& Crashlytics
from older version:
info.plist
file by the key Fabric
, make sure to delete all that info along with the key."${PODS_ROOT}/Fabric/run"
script. Don't add any API_KEY and BUILD_SECRETThat worked for me, hope this helps.