'Identical property name issue in different third party dependencies extensions

I have two pods in my project Pod A and Pod B. Both pods have UIView extensions and in both extensions there is a property with same name but the type of those property is different.

UIView extension in Pod A:

extension UIView {
    var sd_ImageIndicator: SDWebImageIndicator?
}

UIView extension in Pod B:

extension UIView {
    var sd_ImageIndicator: ST_SDWebImageIndicator?
}

Now Pod B is saving it’s data in XCFrameworkIntermediates in derived data. And when I try to access the property sd_ImageIndicator of Pod A on a view from a class in my app, it picks the property of Pod B from XCFrameworkIntermediates. What I want is that it should pick that property from Pod A instead of XCFrameworkIntermediates derived data of Pod B.

One other case - I have different targets in my project and it’s not occurring for all of them. Some of the targets are having this issue. I have already tried pod deintegrate, deleting pods, derived data and re installing pods, running app on different Mac but nothing has worked so far.

Another question I have posted yesterday related to this issue, in that you can check the error I am getting exactly.

Any help would be highly appreciated. Thanks in advance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source