How to resolve symbol name conflict in a Cocoa touch framework

前端 未结 4 1083
死守一世寂寞
死守一世寂寞 2021-01-01 20:10

I developed a Cocoa touch framework and am having problems with third party static framework classes which are embedded inside of it.

The problem is symbol collision

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 20:31

    You can always use classes from framework like this:

    import Alamofire
    
    let request = Alamofire.Request(...)
    

    And if you have Request class in your own framework, you can use it in the same way:

    import YourFramework
    
    let request = YourFramework.Request(...)
    

    There there would not be any conflicts.

提交回复
热议问题