ios - where to put s.static_framework = true

Viewed 7379

I am level 0 in CocoaPods. When I am using the pod install there is an error says:

The 'Pods-App' target has transitive dependencies that include static frameworks

I try to search around and see the solution in the FIRST answer.

Pranav Gupta said that I need to add s.static_framework = true to my podspec. However, I don't know exactly where.

Please guide me if you know how I can put the s.static_framework = true in my Podfile.

Thank you in advance!

3 Answers

thank you for helping, I am able to find out the solution. Below is the solution, hope it can help other people like me.

I am using Pod to integrate the Firebase to my React native app (@react-native-firebase/app) but receive this error:

enter image description here

We have to add s.static_framework = true in the Podfile of react-native-firebase, NOT Pod file of our project.

The Pod file of react-naive-firebase named RNFApp.podspecs. After we open it, we can see there is a line

s.static_framework = false

Just change it from false to true

Hope my answer can help.

If your base podspec_A is s.static_framework = true then some other podspec integrates podspec_A; this podspec also needs to set s.static_framework = true, otherwise it will cause the Pods-YourProject target to have transitive dependencies that include statically linked binaries: (your podspec).

For pod install command, where error is "target has transitive dependencies that include static frameworks" basically means there are static frameworks attached with pod & in swift pod file you have to comment user_framework line as it stop the use of static frameworks.

So for this kind of error please comment use_frameworks! line in pod file.

Thanks, Ratneshwar

Related