Kyle,

We will 100% make it a priority to get cleaner in this area. Thanks for your comments, we definitely appreciate them and will act on them.
Nick


From: Kyle Fuller <notifications@github.com<mailto:notifications@github.com>>
Reply-To: CocoaPods/Specs <reply@reply.github.com<mailto:reply@reply.github.com>>
Date: Monday, May 12, 2014 at 3:37 PM
To: CocoaPods/Specs <Specs@noreply.github.com<mailto:Specs@noreply.github.com>>
Cc: Nick Ambrose <nick@buddy.com<mailto:nick@buddy.com>>
Subject: Re: [Specs] BuddySDK 2.0.0 (#11727)


In BuddySDK/2.0.0/BuddySDK.podspec:

> @@ -0,0 +1,17 @@
> +Pod::Spec.new do |s|
> +  s.name                = 'BuddySDK'
> +  s.version             = '2.0.0'
> +  s.license             = { :type => 'Apache 2.0' }
> +  s.summary             = 'iOS SDK for the Buddy Platform.'
> +  s.homepage            = 'http://www.buddy.com'
> +  s.authors             = { 'Erik Kerber' => 'erik@buddy.com<mailto:'erik@buddy.com>' }
> +  s.source              = { :git => 'https://github.com/BuddyPlatform/Buddy-iOS-SDK.git', :tag => 'v2.0.0' }
> +  s.source_files        = 'Src/Lib/BuddySDK/*.{h,m}', 'Src/Lib/BuddySDK/{BaseObjects,BPObjects,BPCollections,Service,Categories}/*.{h,m}', 'Src/Lib/BuddySDK/Vendor/{JAGPropertyConverter,ObjectiveSugar,AFNetworking}/**/*.{h,m}'


My bad with the AFNetworking example, I looked in the implementation file and saw the raw class names from AFNetworking so it looked like these were just vendored without prefixes. I later realising the trick with using a macro to declare these to something else in your header. Sorry about that.

The issue does however still exist for the crash reporter, using BuddySDK with CrittercismSDK or HockeySDK will cause this issue:

Example Podfile

pod 'CrittercismSDK'pod 'BuddySDK'

Linker error

...

 /Users/kylef/Desktop/df/TestingBuddy/Pods/BuddySDK/Src/Lib/BuddySDK/Vendor/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
duplicate symbol _plcrash_signal_handler in:
    /Users/kylef/Desktop/df/TestingBuddy/Pods/CrittercismSDK/CrittercismSDK/libCrittercism_v4_3_3.a(libCrashReporter-iphonesimulator.a-i386-master.o)
    /Users/kylef/Desktop/df/TestingBuddy/Pods/BuddySDK/Src/Lib/BuddySDK/Vendor/CrashReporter.framework/CrashReporter(libCrashReporter-iphonesimulator.a-i386-master.o)
ld: 31 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


I've merged regardless because both HockeySDK and CrittercismSDK are incompatible with each other anyway. But would be nice to clean up in the future.

-
Reply to this email directly or view it on GitHub<https://github.com/CocoaPods/Specs/pull/11727/files#r12557870>.