We have a Xcode project consisting of:
- A mix of Swift and Objective-C code app code ~ 1600 source files.
- Roughly around 35 {XC}Frameworks. Some of them are binary and some of them are getting built as a dependency to our app, etc.
- Binary libraries.
- Most of the frameworks built together with app code are Objective-C or Swift-based, which have their own amount of sources files and framework dependencies.
- The binary frameworks mostly contain cross-platform C++ code.
Our (the poor developers) frustration is that almost all time when we do a insignificant change (or even just tap Cmd-R without any changes) in Swift-file or Objective-C file (.m) and then build again then big sh*t show starts again...
For example:
- Frameworks may get rebuilt even though they are not touched.
- Tons of app-level files get built again even though no interface changes, etc. was made.
- Module verifier keeps verifying modules not touched at all, which takes really long time.
- Xcode 16 didn't seems to improve the situation - on the contrary.
Example of an untouched framework that for unknown reason goes trough this every time we build:
I know it is hard to come with ideas to solve this for an unknown larger project. But do other people with similar-size projects also experience this or is re-building not an issue for you?
Cheers!