question

snapup avatar image
snapup asked

Duplicate Symbol Error when used alongside aws-sdk-v2

Hello, I’m trying to use the Amazon iOS AB testing SDK https://developer.amazon.com/appsandservices/apis/manage/ab-testing alongside the aws-sdk https://github.com/aws/aws-sdk-ios-v2 But I’m getting duplicate symbol issues. I believe its due to the way externs are being declared duplicate symbol _AIDefaultFileManagerErrorDomain FOUNDATION_EXPORT NSString * const AIDefaultFileManagerErrorDomain; I’m guessing the static library is using the same extern names. How can I fix this? I’m using the aws sdk using cocoapods. duplicate symbol _AIDefaultFileManagerErrorDomain in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultFileManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultFileManager.o) duplicate symbol _AIBufferedReaderErrorDomain in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsBufferedReader.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIBufferedReader.o) duplicate symbol _AIPreferencesFilename in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSPreferences.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSPreferences.o) duplicate symbol _SESSION_START_EVENT_TYPE in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_STOP_EVENT_TYPE in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_PAUSE_EVENT_TYPE in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_RESUME_EVENT_TYPE in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_ID_ATTRIBUTE_KEY in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_DURATION_METRIC_KEY in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_START_TIME_ATTRIBUTE_KEY in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _SESSION_END_TIME_ATTRIBUTE_KEY in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsDefaultSessionClient.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIDefaultSessionClient.o) duplicate symbol _OBJC_METACLASS_$_AIDefaultSerializer in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsSerializerFactory.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AISerializerFactory.o) duplicate symbol _OBJC_CLASS_$_AIDefaultSerializer in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsSerializerFactory.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AISerializerFactory.o) duplicate symbol _OBJC_IVAR_$_AIFileEventIterator._eventStore in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_IVAR_$_AIFileEventIterator._linesRead in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_IVAR_$_AIFileEventIterator._nextBuffer in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_IVAR_$_AIFileEventIterator._reader in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_IVAR_$_AIFileEventIterator._isEndOfFile in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _AIEventsDirectoryName in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _AIEventsFilename in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_CLASS_$_AIFileEventIterator in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _OBJC_METACLASS_$_AIFileEventIterator in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsFileEventStore.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIFileEventStore.o) duplicate symbol _AIConfigurationFileStoreFilename in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsHttpCachingConfiguration.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIHttpCachingConfiguration.o) duplicate symbol _OBJC_IVAR_$_AIBackgroundQueue._blockArray in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) duplicate symbol _InsightsBackground in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) duplicate symbol _InsightsForeground in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) duplicate symbol _InsightsBackgroundQueueKey in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) duplicate symbol _OBJC_CLASS_$_AIBackgroundQueue in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) duplicate symbol _OBJC_METACLASS_$_AIBackgroundQueue in: /Users/briansunter/Library/Developer/Xcode/DerivedData/Splendidly-darfpsrkvhufprdnvqvyvaowjrnz/Build/Intermediates/Splendidly.build/Debug-iphoneos/SnapUp App Store.build/Objects-normal/armv7/AWSMobileAnalyticsIOSLifeCycleManager.o /Users/briansunter/code/SnapUp/wishplz-iphone/AmazonInsightsSDK.framework/AmazonInsightsSDK(AIIOSLifeCycleManager.o) ld: 32 duplicate symbols for architecture armv7
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

DougM@Amazon avatar image
DougM@Amazon answered
Hello Snapup, This issue has been fixed to address https://github.com/aws/aws-sdk-ios/issues/66 , as of version 2.0.8 of the AWS Mobile SDK for iOS. If you update your pods you should be able to grab the latest version of the SDK and this issue should be resolved.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.