M
M
mozilla92014-07-17 18:16:20
iOS
mozilla9, 2014-07-17 18:16:20

How to setup CI to build ios project using cocoapods?

There is a project for iphone.
Third party libs are connected via cocoapods. The pods themselves are not added to the repository, it is assumed that the developer will make $ pod install after the project checkout.
Now you need to configure the xcode agent to automatically build the project.
And now I'm thinking what to do with pods.
- I don't want to put them in a repo.
- If you do a thread script before building for $ pod install - then the problem is that for each commit, lib megabytes will be re-downloaded.
What are the solutions?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
corristo, 2014-07-21
@corristo

Use Jenkins or other CI instead of Xcode bots.
By the way, point 2 is not entirely correct, CocoaPods caches libraries locally (see ~/Library/Caches/CocoaPods), so not much will be downloaded with each pod install.
Yes, and point 1 is debatable, I also used to be sharply against adding Pods/* to the repository, but this approach has its advantages: you can easily roll back and build the desired version in its original form, it’s easy to jump between branches during active development, while not depending on the availability of the network and the availability of Github.

M
mozilla9, 2014-07-21
@mozilla9

I set up jenkins, but so far I have not been able to run the tests.
After studying Bots, I realized that they are good for simple projects.
Now I keep the binding of Pods separately in the repo (for a rainy day). There was a case when one lib became unavailable for a couple of weeks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question