RobertGummesson / BuildTimeAnalyzer-for-Xcode

Build Time Analyzer for Swift
MIT License
4.3k stars 260 forks source link

How to analyze a pod? #49

Closed ileitch closed 6 years ago

ileitch commented 7 years ago

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 👍🏼

RobertGummesson commented 7 years ago

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.

ileitch commented 7 years ago

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.

RobertGummesson commented 7 years ago

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.