I'm trying to add BuddySDK to existing project which contains following pods installed:
platform:ios, '7.0'
pod 'RestKit', '~> 0.23'
pod 'SSKeychain', '~> 1.2'
pod 'Reachability', '~> 3.1'
After adding pod 'BuddySDK', '~> 2.0' to the project I'm getting error in Xcode like below:
/Users/Damiano/Library/Developer/Xcode/DerivedData/XXXXXXXXX-bgsmofalkolyjqamlxutjirazrta/Build/Products/Debug-iphoneos/libPods.a(BPAFURLRequestSerialization.o)
duplicate symbol _OBJC_CLASS_$_AFHTTPBodyPart in:
/Users/Damiano/Library/Developer/Xcode/DerivedData/XXXXXXXXX-bgsmofalkolyjqamlxutjirazrta/Build/Products/Debug-iphoneos/libPods.a(AFHTTPClient.o)
/Users/Damiano/Library/Developer/Xcode/DerivedData/XXXXXXXXX-bgsmofalkolyjqamlxutjirazrta/Build/Products/Debug-iphoneos/libPods.a(BPAFURLRequestSerialization.o)
duplicate symbol _OBJC_METACLASS_$_AFHTTPBodyPart in:
/Users/Damiano/Library/Developer/Xcode/DerivedData/XXXXXXXXX-bgsmofalkolyjqamlxutjirazrta/Build/Products/Debug-iphoneos/libPods.a(AFHTTPClient.o)
/Users/Damiano/Library/Developer/Xcode/DerivedData/XXXXXXXXX-bgsmofalkolyjqamlxutjirazrta/Build/Products/Debug-iphoneos/libPods.a(BPAFURLRequestSerialization.o)
ld: 39 duplicate symbols for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was searching for solution on other asked questions like this but without any luck.
It looks like an error occurred because BuddySDK contains AFNetworking classes which already exist in RestKit.
After deleting RestKit pod from Podfile the problem disappears. Does anyone can tell me what should I do to successfully install both pods (RestKit and BuddySDK) ?
Thanks in advance