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

+3


source to share


3 answers


I had this after updating the target name, it added the pods framework twice - removed the old framework, solving it .

Project> Purpose> Related Structures and Libraries



(remove with "-")

+11


source


go to Finder, press ALT button and select GO option, you will find library and click on application to delete derived data. Xcode 6 is a completely new storage format. Delete the old data obtained from xcode.



0


source


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

0


source







All Articles