Class is implemented in both. One of the two will be used

前端 未结 4 1078
小鲜肉
小鲜肉 2020-12-03 02:31

I have a project that has a dependency (installed via CocoaPods) using SocketRocket and have imported a static library from HeapAnalytics. Apparently the HeapAnalytics libra

4条回答
  •  日久生厌
    2020-12-03 03:05

    I wrote that error message!•

    Either change the class name or don't link against said library.

    How is your project configured? Is there anywhere where you explicitly link against SR? Or is it a product of linking against two static libraries that both already include SR?

    If the former, then stop linking against SR directly and just inherit the version that came with the library already using it (warning: make sure it has the right version).

    If the latter, then you are going to have to modify one of the libraries.

    • Actually, I modified the error. It used to imply that one or the other would be used. But that wasn't really what was going on and the behavior was different across different platforms. Thus, it was changed so that it was far more precise in identifying that the behavior was undefined.

提交回复
热议问题