rxz99 / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Link error with iOS SDK 3.11 due to conflicting class name "Settings" #631

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Name of affected component: Mobile Tracking

Name of related library and version, if applicable (e.g. Android, iOS,
Snippets, etc.): iOS SDK v 3.11

Issue summary:
After updating the iOS SDK from version 3.10 to version 3.11 in my app, I'm 
getting the following link-time error:

duplicate symbol _OBJC_CLASS_$_Settings in:
    /Users/marco/Library/Developer/Xcode/DerivedData/PagineGialle-btpjziarzjwfprfepzmszexyuxvz/Build/Intermediates/PagineGialle.build/Debug-iphonesimulator/PagineGialle.build/Objects-normal/i386/Settings.o
    /Users/marco/Ovolab/Common/Google/GoogleAnalytics/iOS/v3/libGoogleAnalyticsServices.a(GeneratedProtos.o)
duplicate symbol _OBJC_METACLASS_$_Settings in:
    /Users/marco/Library/Developer/Xcode/DerivedData/PagineGialle-btpjziarzjwfprfepzmszexyuxvz/Build/Intermediates/PagineGialle.build/Debug-iphonesimulator/PagineGialle.build/Objects-normal/i386/Settings.o
    /Users/marco/Ovolab/Common/Google/GoogleAnalytics/iOS/v3/libGoogleAnalyticsServices.a(GeneratedProtos.o)
ld: 2 duplicate symbols for architecture i386

This is apparently due to a new "Settings" class introduced in v 3.11 which is 
conflicting with an existing class name. I'd recommend using a more specific 
class name to avoid conflicts, like "GASettings" or some such.

Original issue reported on code.google.com by marco.ov...@gmail.com on 6 May 2015 at 9:04

GoogleCodeExporter commented 8 years ago
See Release Version 3.12 (May 11, 2015)
https://developers.google.com/analytics/devguides/collection/ios/changelog

Original comment by pfrise...@google.com on 11 May 2015 at 10:33

GoogleCodeExporter commented 8 years ago
I am integrating Google Analytics 3.15 via cocoa pods and immediately after 
adding it I am getting Linker Error I tried all the way.
1. Removed -ObjC flag
2. Removed -forece-load
3. Added Extra Frameworks and a lot.

Please help me how can i resolve this. 

And I am also using GoogleMaps/GCM in my pod. and I have added AFNetwroking 
without COodapods.

Here is the link of my SO question 
http://stackoverflow.com/questions/34084718/duplicate-symbols-for-architecture-x
86-64-while-adding-pods-from-cocoapods

Original comment by rahul.mi...@vectoscalar.com on 5 Dec 2015 at 6:27