Duplicate symbol in the outer structure

In my iOS Xcode project, I use an external, non-open source library from a third party. Now I want to add AFNetworking to my project through cocoapods. When I do this, I get a few errors like this:

duplicate symbol _OBJC_METACLASS_$_AFImageCache in:
    /Path/to/framework(UIImageView+AFNetworking.o)
    /Path/to/DerivedData/Build/Products/Debug-iphonesimulator/libPods.a(UIImageView+AFNetworking.o)

63 duplicate symbols for architecture i386

This means that the library also uses AFNetworking and thus prevents me from using it. Is there a way to solve this (other than using a different structure, which is not an option)?


Edit

I managed to remove AFNetworking from another structure by doing something similar to this . But now the structure does not find AFNetworking from cocoapods, and I get Undefined symbols for architecture i386.

Is there any way to talk about where to find AFNetworking?

+4
1

. Objective-C, CocoaPods. .

, , AFNetworking . CocoaPods , , , .

+2

Source: https://habr.com/ru/post/1538136/


All Articles