Steps I did:
pod repo remove master
pod setup
pod update --verbose
(Just to check the progress especially when updating the Google SDKs, took so long to finish).
And there, I got the warning. In my logs, Google SDKs were updated successfully:
-> Installing Google 3.1.0 (was 3.0.3)
-> Installing GoogleMaps 2.3.0 (was 2.2.0)
Podfile:
target 'MyProj' do
...
pod 'Google/Analytics'
pod 'GoogleMaps'
...
target 'MyProjTests' do
inherit! :search_paths
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.0'
end
end
end
end
I would like to know how to get rid of this warning.
Change pod 'Google/Analytics'
to pod 'GoogleAnalytics'
removing the slash.
Extending on Paul Beusterien answer:
First, remove old import from your bridging header:
#import <Google/Analytics.h>
Then, add the following to the bridging header instead:
#import "GAI.h"
#import "GAIDictionaryBuilder.h"
#import "GAIEcommerceFields.h"
#import "GAIEcommerceProduct.h"
#import "GAIEcommerceProductAction.h"
#import "GAIEcommercePromotion.h"
#import "GAIFields.h"
#import "GAILogger.h"
#import "GAITrackedViewController.h"
#import "GAITracker.h"
Finally you might want to recheck: https://developers.google.com/analytics/devguides/collection/ios/v3/
You don't need GGLContext line anymore.
Hope this helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With