Manage pods based on scheme in iOS

Viewed 750

How can we manage pods based on my scheme. Suppose I want to use a pod in UAT/Debug scheme not in Prod scheme. How we can achieve that. I did quite a lot searching but didn't get any working solution.

1 Answers

Cocoapods doesn't support for scheme, but you can walk around by using the configuration way.

  1. Create a new Configuration (for example, named it UATDebug)
  2. Edit your UAT/Debug scheme, in the edit scheme menu, change the Build Configuration to your UATDebug
  3. In your Podfile, specific your configuration for pod, like the example that wrote in Cocoapod docs (Build configurations)

pod 'PonyDebugger', :configuration => 'Debug'

Related