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

后端 未结 5 1913
独厮守ぢ
独厮守ぢ 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:27

    One solution is to turn on use_frameworks! in the framework's Podfile. Then you still could make your framework compiled, and embed your framework in the target app. The warning messages will disappear (It is simply because framework's pods are complied to another framework, but you don't embed this one in your target app. Then your app will refer to the binary of its own.)

    But this is not a good solution for two reasons: 1. You need to make sure the target app include the necessary pods that the framework needs. 2. The app might use different pod version to the framework. If both framework and app refer to the same pod binary, it could lead to crash.

    I doubt there is a good solution for this issue.

提交回复
热议问题