RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to analyze a pod?

ileitch opened this issue · comments

We have two apps and a library which we share between the two as a cocoapod. Reporting works great for the apps themselves, but I'd like for them to include the compile times of the shared pod. Any idea how to achieve this?

Great little utility btw 👍🏼

That's a good question. I haven't tried to analyze pods and am uncertain if those can be included in the log files. Worst case, you will need to analyze the shared project separately.

Our shared project has its own app just for a few demonstrative purposes, but the code of value is all in library form. I think the problem is that the compiler flags are set on a target, yet the code in the shared pod is not directly part of any runnable target.

On a different note though, is your library pre-compiled?

If you're having problems with long running build times, it may seem a bit unnecessary to recompile the framework each time. Particularly if the project is maintained separately. I personally saw a 75% build time drop when I moved out some problematic code to a static library.