leizh00701
leizh00701

Reputation: 1963

Class name conflict with class in Framework

In main project, I have a class named: Result.

And I import a third framework through Cocoapods which is also named Result. The Result framework has a class named Result.

In project, how can I use the Result class in Result framework?

Upvotes: 12

Views: 4674

Answers (1)

Max Pevsner
Max Pevsner

Reputation: 4104

You need to put the package name in front of the class name.

ThirdPartyFrameworkName.Result

and

YourTargetName.Result

Upvotes: 23

Related Questions