Include framework in Xcode static library?

前端 未结 2 646
执念已碎
执念已碎 2021-02-12 15:32

In short:

Is there a way to create a static library in Xcode such that when clients link with that library, they also link with the frameworks upon which that library

相关标签:
2条回答
  • 2021-02-12 15:53

    In short: no, a static library is just a bunch of .o files

    A solution would be to refactor your common code into "static frameworks", see there for a possible solution.

    0 讨论(0)
  • 2021-02-12 16:05

    A new answer to this question would be, yes it's possible: use cocoapods! :)

    http://cocoapods.org

    0 讨论(0)
提交回复
热议问题