There are couple options to get this done: 1) Use env variables that enables blocks or specific versions: https://stackoverflow.com/questions/48414821/automatically-select-proper-path-to-local-cocoapods-framework 2) Use build configs (more official way) https://guides.cocoapods.org/syntax/podfile.html#Build%20configurations 3) Use pre cocoapods scripts and replace versions inside: https://guides.cocoapods.org/syntax/podfile.html#pre_install 4) Use different dev/prod podspecs: https://guides.cocoapods.org/syntax/podfile.html#podspec. For example {code} ## if env var will be missing it will take first podspec in root (our prod) podspec ENV["env"] {code}
5) Use custom script that will override versions: https://guides.cocoapods.org/syntax/podfile.html#script_phase |
|