When ever switching branches my packages are resolved properly

Scandit Data Capture SDK:
github: Scandit/datacapture-spm
from: 6.23.0

I had to add ScanditIDCapture so we have an option to select the which things we want to add from the package through swift package manager right, so in my current working branch I have deleted and added the Scandit Data Capture Core SDK again with the Scandit ID Capture included but when I switch branches or generate my project using xcodegen it will say that ScanditIDCapture is not existing

Thank you esther, i have tried this already but it is not working.