Selectively use_framework! in cocoapods

I wish I could compile some of the pods into dynamic frameworks while leaving others as static frameworks.

use_frameworks!
pod 'A'
pod 'B'
pod 'C'

      

By default, the parameter use_frameworks!

is an all-or-nothing method. I wonder if we can opt out of compiling some frameworks dynamically.

For example, how can I compile a pod A

into a dynamic framework while keeping the static libraries B

and C

? Thank!

+3


source to share


1 answer


This is not possible with CocoaPods. One option is to manually include your static libraries and include your other dependencies as frameworks via CocoaPods. It's not perfect though.



+3


source







All Articles