R.swift
R.swift copied to clipboard
Modular app with Rswift SPM installation needs to build each target to create R.generate
I'm working in an app where we have features in different modules within the same workspace. when I switch branches I need to build my feature modules in order to get the main app module running without errors. The error I get is the R.image etc couldn't be found.
My structure is: Workspace
- Projec1
- Feature1 (target)
- Feature2 (target)
- AppProject
- iOS app (target)
where I have iOS app depends on Feature1 and Feature2, and Feature2 depends on Feature1
I have R.swift on SPM for all 3 modules, and it works perfectly, except for the need to build all modules as I mentioned above.
I'm using R.swift v7.2.4