trinhngocthuyen / cocoapods-spm

A CocoaPods plugin to add SPM dependencies to CocoaPods-based projects
MIT License
36 stars 7 forks source link

Link frameworks/libraries differently based on `:linkage` option #24

Closed trinhngocthuyen closed 7 months ago

trinhngocthuyen commented 7 months ago

If not specified, the linkage is assumed to be :static.

A package may have multiple products of multiple linkage types. For example, Foo is dynamic while Bar is static. In that case, we specify the :linkage option as follows:

spm_pkg "FooBar", 
        ...
        :linkage => { "Foo" => :dynamic, "Bar" => :static }