Caching Cocoapods Artifactory

In our company we work for proxies. This is one of the reasons why we got Artifactory in our toolchain.

Everything looks good, the remote repository uploaded master.tar.gz with all the podspecs and changed the source URLs in podspecs to the URL of Artifactory, where they should be loaded from now on. But there is a problem:

  • URLs change only for git sources, when the source is "http", the source does not change. An example we encountered is "GoogleMaps".
  • As mentioned above, we are behind the proxy server, and the installation of this module "GoogleMaps" does not work, because we can not bypass the proxy server.
  • Even if we could do this once, I would expect Artifactory to cache the pod, as it would for other pods. This would solve the problem, but not completely, but at least from now on developers can access the cached version. But the "http" sources are not cached, and I have no idea why.

The screenshot shows how other used containers are cached, but not by GoogleMaps.

Artifactory cache

So, if someone experienced the same problem and might even have solved it, it would be amazing if you could help me.

+4
source share
1 answer

"git" URL- "http", Artifactory , . , , , Artifactory URL- , , , , , , - , mac ( ~/.cocoapods/repos/<repo_name>

, github.com, Artifactory URL- (http:// git://, ) - , github.com, .

URL- Google Maps https://dl.google.com/geosdk/googlemaps-ios-1.0.1.zip, , Artifactory URL-, github.

, , , , Bower - Cocoapods. , .

( , ) cocoapods ( , ), .
, .

+7

Source: https://habr.com/ru/post/1663859/


All Articles