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.
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.