CocoaPods: How do I get the binary size of each pods I linked to?
When you build a project all your pods are built too. Usually(but not always) their location is the same as your final binary[Build location]. You will see how many space it takes on build machine
Also you can find it inside final consumer if you add dependency as dynamic[About]. You will see how many space it takes on device. In this case it will be smaller because doesn't include additional files
you can use this tool from Google https://github.com/google/cocoapods-size
It gives you how much byte a specific pod's binary add to your binary.
It basically uses an empty app and does the before/after comparaison
Exemple:
./measure_cocoapod_size.py --cocoapods AFNetworking
// Output:
Size comes out to be 231568 bytes (measured at version 3.2.1)
You can even pass custom sources, or use the diff yourself on your app ;)
First, go to your root directory (the directory with yourproject.xcworkspace) and type "cat Podfile". This isn't completely necessary, but will show you the dependencies, just so you have an idea.
Then type "cd Pods". This will bring you to the directory where the dependencies are stored. Next, type "du -h". This lists the size of each directory, and will give you a pretty good idea which pods are the largest.