Search code examples
iosfluttercocoapodspodfile

Unable to link statically a specific Pod


I am trying to link statically a specific Pod in my project that requires static linking.

If i write use_frameworks! :linkage => :static, it will link statically all of my Pods and i have multiple errors for some of them that requires dynamic linking.

Now if i write pod 'Google-Mobile-Ads-SDK', :linkage => :static and use_frameworks! only, I am getting the error :

Unknown external source parameters for `Google-Mobile-Ads-SDK`: `{:linkage=>:static}

How can i link statically only one specific Pod in my Podfile ?

Note : i am building the app with Flutter.


Solution

  • Google-Mobile-Ads-SDK is a binary CocoaPod - so there is no control from the Podfile for how it links. The last I checked, it was static.