Having set up multiple targets in Xcode (by duplicating the initial one), everything starts off working fine. Then, some reference/inheritance on the "Pod-App" xcconfig files seem to break and pods are no longer found for my second target ("App Staging") resulting in the commonly known "No such module" errors when building.
I could nail down the reason in my case but I don't know why it happens or how to fix it (except for going through the whole process again of duplicating the initial target). Also, because there are no changes visible among the project files looking at git.
Initial, working state which is always there for my first target and initially also for the second, duplicated target:
Then, without purposefully changing anything nor seeing any changes in the project files, the reference to the config files is suddenly missing for the second target. The only thing I imagine doing before that happens, is to build for another device/simulator.
Why could this break?
How can I link it again to fix the problem?