Cocoapods duplicate symbol _OBJ_METACLASS_ $ PodsDummy_Pods_xxx
I recently have an update for xCode 6. In my project where I am using cocoapods, after updating my modules, I am dealing with an error that I cannot solve and need help. Questions like this on the forums do not resolve my problem and I need a different point of view.
Mistake:
duplicate symbol _OBJC_METACLASS _ $ _ PodsDummy_Pods_myapp in:
/Users/myuser/Library/Developer/Xcode/DerivedData/myapp-cojufufwukcibtcgwjgdbqesleta/Build/Products/Debug-iphoneos/libPods-ibizahelp.a(Pods-myapp-dummy.o) /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-cojufufwukcibtcgwjgdbqesleta/Build/Products/Debug-iphoneos/libPods-IbizaHelp.a(Pods-myapp-dummy.o)
duplicate symbol _OBJC_CLASS _ $ _ PodsDummy_Pods_myapp in:
/Users/myuser/Library/Developer/Xcode/DerivedData/ibizahelp-cojufufwukcibtcgwjgdbqesleta/Build/Products/Debug-iphoneos/libPods-ibizahelp.a(Pods-myapp-dummy.o) /Users/myuser/Library/Developer/Xcode/DerivedData/myapp-cojufufwukcibtcgwjgdbqesleta/Build/Products/Debug-iphoneos/libPods-IbizaHelp.a(Pods-myapp-dummy.o)
ld: 2 duplicate symbols for armv7 architecture
clang: error: linker command failed with exit code 1 (use -v to invoke the call)
My subfile:
#Uncomment this line to define a global platform for your project
platform :ios, '6.0'
source 'https://github.com/CocoaPods/Specs.git'
target 'myapp' do
pod 'MWPhotoBrowser'
pod 'AFNetworking', '~> 2.0'
pod 'UIActivityIndicator-for-SDWebImage'
end
Please be stuck
source to share
Finally I found a solution.
It seems like the cocoapods changed something, or my proyect had a name issue, not really sure, but my target config had a specific set of config and the cocoapods have their own.
My config set was Pods-myappname-xconfig.release, and I was correct, it was Pods-xconfig.release, which was installed in the pods folder when they were installed.
As soon as I changed it, the error disappeared and I just had to remove the old library associated with this config from the link libraries.
if anyone has similar problems i will be happy to help him
source to share