Search code examples
ioscocoapods

ios - where to put s.static_framework = true


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!


Solution

  • 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.