-1

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.

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

3 Comments

Oh okay i understand thanks ! and do you know how to do the opposite, for example if i would like to make some specific dependencies not static (dynamic) ?
I meant that as a consumer of the pod, you have no control whether its static or dynamic. The pod publisher controls it with the build they embedded into their podspec.
alright thanks for the clarification.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.