A sample project that uses a dyanmic framework that links multiple static frameworks from CocoaPods.
Updates:
- Here is a plugin for CocoaPods to build as static-library
- https://github.com/joncardasis/cocoapods-user-defined-build-types
Regarding Reducing Your App's Launch Time, in In the case of using a bunch of dynamic frameworks, App launch time might be slow.
In this case, merging multiple frameworks into a large dynamic framework solves this issue.
This project shows you how to create a merged dynamic framework with building pods as a static-framework.
(From iOS13, Thanks to Apple unlocked the limitation of dyld3 for the third-party application, we don't need to do this approach actually in most of the cases.)
bundle exec pod install
Analyzing dependencies
Downloading dependencies
Static framework -> Alamofire
Static framework -> Bureau
Static framework -> CocoaLumberjack
Static framework -> EasyPeasy
Static framework -> InteractiveZoomDriver
Static framework -> MBProgressHUD
Static framework -> MagazineLayout
Static framework -> Moya
Static framework -> NextGrowingTextView
Static framework -> Nuke
Static framework -> Pageboy
Static framework -> Reusable
Static framework -> RxCocoa
Static framework -> RxSwift
Static framework -> RxRelay
Static framework -> RxFuture
Static framework -> SVGKit
Static framework -> StackScrollView
Static framework -> Tabman
Static framework -> TypedTextAttributes
Static framework -> ViewSizeCalculator
Static framework -> lottie-ios
📦 Pods-App
-> Reveal-SDK (Dynamic)
-> Alamofire (Static)
-> Bureau (Static)
-> CocoaLumberjack (Static)
-> EasyPeasy (Static)
-> InteractiveZoomDriver (Static)
-> MBProgressHUD (Static)
-> MagazineLayout (Static)
-> Moya (Static)
-> Alamofire (Static)
-> NextGrowingTextView (Static)
-> Nuke (Static)
-> Pageboy (Static)
-> Reusable (Static)
-> RxCocoa (Static)
-> RxSwift (Static)
-> RxRelay (Static)
-> RxSwift (Static)
-> RxFuture (Static)
-> RxSwift (Static)
-> RxRelay (Static)
-> RxSwift (Static)
-> RxSwift (Static)
-> SVGKit (Static)
-> CocoaLumberjack (Static)
-> StackScrollView (Static)
-> Tabman (Static)
-> Pageboy (Static)
-> TypedTextAttributes (Static)
-> ViewSizeCalculator (Static)
-> lottie-ios (Static)
📦 Pods-Service
📦 Pods-Utility
-> Alamofire (Static)
Generating Pods project
Integrating client project
Pod installation complete! There are 23 dependencies from the Podfile and 23 total pods installed.