spotify / XCRemoteCache

Other
830 stars 53 forks source link

Rename prebuild and postbuild phases, adjust prebuild position #74

Closed vasvf closed 2 years ago

vasvf commented 2 years ago

I decided to add target name to all pre- and postbuild phases for better search through build logs for debugging purposes

I also moved prebuild script from "top" position to "before compile". The main point is because there are, generally, many scripts in podspecs, like swiftlint and swiftgen (especially).

And if [XCRC] prebuild phase comes before swiftgen, it leads to cycle dependency error on second build. But if we put [XCRC] prebuild phase before compile sources, and after swiftgen, everything works fine.

And, another reason: both linters and generator scripts can modify files, and XCRC should handle it and turn off caches.