| There are couple options I see this running: 1) Use env variables that enables blocks 2) Use build configs (more official way) https://guides.cocoapods.org/syntax/podfile.html#Build%20configurations 3) Use pre,post cocoapods scripts and replace versions inside: https://guides.cocoapods.org/syntax/podfile.html 4) Use different dev/prod podspecs: https://guides.cocoapods.org/syntax/podfile.html#podspec. For example
## if env var will be missing it will take first podspec in root (our prod) |
podspec ENV["env"]
|
5) Use custom script that will override versions: https://guides.cocoapods.org/syntax/podfile.html#script_phase |