handling dependencies for iOS Framework project

前端 未结 7 2105
不思量自难忘°
不思量自难忘° 2020-12-28 08:09

I\'ve created iOS Framework project using this method: https://github.com/jverkoey/iOS-Framework

Works pretty neat but I\'m a little confused on how to include libra

7条回答
  •  天命终不由人
    2020-12-28 08:59

    For the use case you are describing, you should be linking to these external libraries from your application, NOT your own framework. It can be one or the other, but it can't be both.

    If you decide that these dependancies belong as the responsibility of the application, you would remove them from "Link Binary With Libraries" and any other explicit linking configuration, and just project your framework project with the path to these frameworks and libraries so it can find the symbols (but not link against them) at compile time (i.e. the path to the libraries should be included LIBRARY_SEARCH_PATHS).

提交回复
热议问题