3

After I have installed cocoa pods in my project, the project size has increased from 200 kb to 515 mb. Any suggestions to find the mistake and reduce the size is most appreciated.

Thanks

Rohit saraf
  • 491
  • 1
  • 6
  • 17
  • 2
    Which pods you installed ? any specification ? – Ashish Thakkar Jun 28 '16 at 12:37
  • 3
    I think it's normal to have size increased, but that doesn't means that the compiled size of the app will increase. I think your preoccupation must be the download size of your app that your users will download – Masterfego Jun 28 '16 at 12:38
  • @AshishThakkar It's cocoa pods. Have added in the question. – Rohit saraf Jun 28 '16 at 12:48
  • 1
    pls show ur podfile. – Teja Nandamuri Jun 28 '16 at 12:52
  • you will find actual size of app when you create the ipa file. – Ashish Thakkar Jun 28 '16 at 12:54
  • @TejaNandamuri Thank You! After your response, while checking I came across the specs folder inside my project which contains hell lot of frameworks, I guess. That is taking the whole size. Not sure if I can attach the screen shot, or how shall I show you the pod file? Any suggestions for next step? – Rohit saraf Jun 28 '16 at 13:04
  • @AshishThakkar Thank you, but I'm also concerned about the project size. So, trying to find out if anything has gone wrong. – Rohit saraf Jun 28 '16 at 13:08

2 Answers2

0

If you have a 'hell of a lot of frameworks' - are they all necessary? The pods in your podfile add to the size of your project. Remove unecessary pods from the podfile, call pod install and your project size should decrease.

Craig Grummitt
  • 2,945
  • 1
  • 22
  • 34
0

I think I had pulled the whole master repo in my project location, which resulted in the specs folder containing the whole frameworks with all the versions. And, that was something occupying so much of space.

To resolve the same, I removed the pod from my project completely with the reference of the answer mentioned here :

How to remove CocoaPods from a project?

Then, I set up the pods again into my project with the following reference :

How to install cocoa pods?

And now everything looks fine and as expected.

Thanks!

Community
  • 1
  • 1
Rohit saraf
  • 491
  • 1
  • 6
  • 17