I have a project which is set up like so
App.xcproject
App target { Dependency on Bridges.framework }
Bridges.xcproject
Bridges.framework
Bridges.framework
has a bunch of Objective-c++ headers that import c++ headers/frameworks etc. It has a modulemap
that allows it to generate bridging headers for the App target which is Swift
only.
I have noticed that every single build Planning Swift module App
is run for 1 second, then Precompile bridging header
is run for a moment, then every single swift file that imports Bridges recompiles regardless of if it had any edits taking about 2-3 seconds.
It feels like since nothing has changed inside of Bridges that this bridging header precompile should not be necessary every single run.
- Bridges.framework is in General/Frameworks as "Do not embed"
- Bridges is in build phases "Target dependencies" and "Link binary with libraries"
Is this just normal and I should let this slide or is there a way to avoid this?