datatheorem / TrustKit

Easy SSL pinning validation and reporting for iOS, macOS, tvOS and watchOS.
MIT License
2.01k stars 362 forks source link

Updated Swift Package Manager product to be dynamic #234

Closed vpolsinelli closed 3 years ago

vpolsinelli commented 4 years ago

Switched the products from Swift Package Manager to be dynamic rather than static.

By default, Swift Package Manager sets this to static and can cause linking issues. The specific error I am trying to address is:

error: Swift package product LIBRARY is linked as a static library by APP and EXTENSION. This will result in duplication of library code.

nabla-c0d3 commented 3 years ago

I ended up following this approach: https://github.com/onevcat/Kingfisher/pull/1426/files as it exposes all linking options. Thanks!