Is it possible to convert dynamic framework to static library?
The problem is that I don't have a source code of framework, but only SomeFramework.framework
file which is dynamic library for few architectures
CocoaPods pod-linkage plugin. In SwiftKey, we have a dynamic framework that we use to share code between the app and the keyboard extension, and all the pods are linked statically except for some of them that are linked dynamically because they are linked to the app and keyboard extension too.
Static and Dynamic Frameworks:Static frameworks contain a static library packaged with its resources. Dynamic frameworks contain the static/dynamic library with its resources. In addition to that, dynamic frameworks may conveniently include different versions of the same dynamic library in the same framework.
An XCFramework can be either static or dynamic and can include headers.
Whereas Universal Frameworks contain many slices without knowledge of the platform SDK for each one, XCFrameworks contain many slices organized by platform. Because of this platform-awareness, an XCFramework can target more than one platform for the same architecture, which solves our problem.
Create a "Cocoa Touch Framework" and add your .framework to the "Linked frameworks and Libraries" then you can:
or
Don't forget to add the modulemap / Umbrella to expose what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With