Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cocoapods duplicate symbol _OBJ_METACLASS_$PodsDummy_Pods_xxx

recently I have update to xCode 6. In my project where I am using cocoapods, after update my pods, I am dealing with an error I can`t resolve and need help. Similar questions in the forums don't resolve my problem and I need other point of view.

The error is:

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 architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

my Podfile is:

#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 I am stuck

like image 486
cmacera Avatar asked Oct 14 '14 09:10

cmacera


1 Answers

I've had it after target name update, it added pods framework twice - removing the old framework solved it.

Project > Target > Linked Frameworks and Libraries

(remove with "-")

like image 126
Avishay Cohen Avatar answered Oct 19 '22 11:10

Avishay Cohen