This shell script strips all Tag libraries from google analytics 3.03a and creates library without any references to ASIdentifierManager.
Use this AS-IS for you own risk.
This library can be used with Cocoapods GoogleAnalytics.
IMPORTANT
My app successfully passed Apple Review with this library.
-
Download Latest GoogleAnalytics SDK for iOS. Current version is 3.03a
-
Copy script stripTag.sh into folder with libGoogleAnalyticsServices.a
-
Open Terminal.app goto folder with GA lib and chmod stripTag.sh to allow execution
chmod a+x stripTag.sh
-
Run it from GA lib folder with command
. stringTag.sh
(dot, space, script name. Don't use slashed)
-
libGoogleAnalyticsServices-strip.a should appear in this folder.
-
Check it for ASIdentifierManager with this command
nm libGoogleAnalyticsServices-strip.a | grep ASIdentifierManager
-
Rename it into libGoogleAnalyticsServices.a and use it.
Add GoogleAnalytics pod as usual, create sripped version of library and place it into
$(ProjectDir)/Pods/GoogleAnalytics-iOS-SDK
Special thanks to Falko Buttler for great idea from this post
https://groups.google.com/forum/#!topic/ga-mobile-app-analytics/0mr85C7704M
And thanks to author of this article