Prevent duplicate symbols when building static library with Cocoapods

后端 未结 6 1390
天涯浪人
天涯浪人 2020-12-07 21:32

While I\'ve seen many questions dealing with Cocoapods and static libraries, most of them seem to assume you\'ll eventually have a single workspace with your static library

6条回答
  •  一向
    一向 (楼主)
    2020-12-07 22:05

    If they are the same, you can merge them using:

    libtool (libtool -o merged.a file1.a file2.a)
    

    If this doesn't resolve the error, there is this option: http://atnan.com/blog/2012/01/12/avoiding-duplicate-symbol-errors-during-linking-by-removing-classes-from-static-libraries

提交回复
热议问题