Podspecs are usually in the same repo for source distributions, but they don't have to be. Either way, the pod clients need access to both.
For binary distributions, the binary needs to be accessible but the code can bee anywhere.
More details in https://guides.cocoapods.org/making/private-cocoapods.html
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…