Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Xcode build CocoaPods every time I build my project?

So I have a project with lots of code, and some of it part of open source projects hosted on GitHub, I'm thinking of removing that code and use CocoaPods to import and manage that code for me.

My question is, will that help with the project building time? does Xcode build the complete workspace every time I build my project?

When specifically does Xcode build the pods?

like image 770
Mr.Me Avatar asked Nov 20 '14 15:11

Mr.Me


2 Answers

I've had similar problems and developed my own utility 🏈 Rugby.

You can use it like that:

pod install && rugby

And all your pods will be moved to cache. It's an easy enough and fast solution.
At the second time, 🏈 Rugby will compile only changed pods.
Feel free to contact me if you have any issues.

like image 69
SwiftyFinch Avatar answered Nov 16 '22 04:11

SwiftyFinch


Pods will be recompiled:

  • When you do a pod install/update
  • When you do to a clean build

Most of the time, pods are not recompiled.

You can speedup clean build pods using:

https://github.com/leavez/cocoapods-binary

like image 44
Antzi Avatar answered Nov 16 '22 04:11

Antzi