BilalReffas BilalReffas - 1 year ago 159
iOS Question

Issue with Google Analytics in Swift 2 or 3

I have a problem with Swift 2 (Swift 3) and Google Analytics.

This is the line with the problem:


Xcode tell's me:

Cannot invoke 'send' with an argument list of type '(NSMutableDictionary!)'

Answer Source

Same here, struggling to resolve tons of errors.

What I did (deprecated):

var build = GAIDictionaryBuilder.createAppView().build() as [NSObject : AnyObject]


Thanks to @George Poulos. . Recently they updated the options, now createAppView is deprecated, should use createScreenView instead.

var build = GAIDictionaryBuilder.createScreenView().build() as [NSObject : AnyObject]
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download