Class X is implemented in both and one of the two will be used, which one is undefined

后端 未结 5 1982
独厮守ぢ
独厮守ぢ 2020-12-13 09:10

I\'m getting this warning:

Class X is implemented in both  and  one of the two will be used, which one is undefined
         


        
5条回答
  •  天涯浪人
    2020-12-13 09:42

    My solution was to take the source code from the cocoa pod and create a Cocoa Touch Framework for it. Then I linked the framework to my api and to my test app. This isn't great but it is all I could do quickly. I believe Cocoapods is working on supporting frameworks so this solution may get outdated soon enough.

    My company also uses gradle for dependencies (java) and build scripting. So I created a groovy/gradle build task that builds my framework and my supporting frameworks (cocoapod frameworks) and creates a universal framework from them. Then it zips all of the frameworks. This means I can distribute one zip with all of the requirements. This obviously isn't the nicest way to distribute (we'll be moving to distributing through Cocoapods with dependencies on our closed source frameworks), but it is fast to setup.

提交回复
热议问题