iOS App crashing after Google Analytics integration

448 Views Asked by At

I am integrating Google Analytics in my Application [ iOS swift 2 ] with the help of: https://developers.google.com/analytics/devguides/collection/ios/v3/?ver=swift

I have done following steps:
pod 'Google/Analytics'
Placed Google provided code in App Delegate but when I run the application its crashing

screen shot 2016-02-10 at 9 26 54 pm

screen shot 2016-02-10 at 9 25 46 pm

screen shot 2016-02-10 at 9 29 43 pm

Update[Pod file screenshot]: enter image description here

Update[GoogleService-Info.plist screenshot]: enter image description here

2

There are 2 best solutions below

0
On BEST ANSWER

It was crittercism bug: check Press Release I fixed that issue by updating crittercism library

0
On

Please try below comments to create pod file on your mac and see

$ sudo gem install cocoapods

Create a Podfile for the Google Analystics SDK for iOS and use it to install the API and its dependencies:

Create a file named Podfile in your project directory. This file defines your project’s dependencies, and is commonly referred to as a Podspec.

$ touch podfile
$ open -e podfile

Edit the Podfile and add your dependencies.

pod "Google/Analytics"

Save the Podfile.

Open a terminal and go to the directory containing the Podfile:

$ cd <project-path>

Run the pod install command. This will install the APIs specified in the Podspec, along with any dependencies they may have.

$ pod install