Good article. How about we use XCConfig files for dev,test and prod and define a variable in all of them and vales would be different?.
// dev.xcconfig
APP_Base_url = “dev.com/endpoint”
//test.xcconfig
APP_Base_url = “test.com/endpoint”
//prod.xcconfig
APP_Base_url = “prod.com/endpoint”