Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Class name conflict with class in Framework

Tags:

ios

swift

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?

like image 412
leizh00701 Avatar asked Jun 05 '17 10:06

leizh00701


1 Answers

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

ThirdPartyFrameworkName.Result

and

YourTargetName.Result
like image 192
Max Pevsner Avatar answered Oct 19 '22 16:10

Max Pevsner