-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose Pods-environment header to the user project #1068
Comments
For now you should add it to your own project as well indeed. Atm it’s mainly meant for pods to know which other pods have been enabled. @irrationalfab Do we want to expose this to the user by default? |
I think that exposing it might be helpful. However I'm not sure what benefit it could provide over #731. |
Exposing it is useful and is different than #731 because I'm targeting features based on the availability of the pods. I do not have different build/targets in Xcode but instead built a script in ruby that allows me to setup environments. So, I usually do this Another thing it does is setup several API_KEYs for that environment but that's beyond cocoa pods I guess. Sent from my iPhone On May 27, 2013, at 2:41, Fabio Pelosin notifications@github.com wrote:
|
I am also interested on having this Pods-environment.h exposed to the client app. In my case I am making a generic app that will be available in multiple forms, so of them including some optional pods while some others dont. Having this macro helps a lot because I can do conditional imports and code based on the existance of the pod instead of having to deal with things on runtime or by some other complex scripts. |
[Update] AKTabBarController (1.0)
Issue has been confirmed by @neonichu |
I don't think you need this header to do this. Instead use #if __has_include("QueryKit.h")
#import "QueryKit.h"
#endif |
I'm developing for different environments that differ in their Pods
Say, beta contains remote logging and production (App Store) doesn't.
To selectively disable their implementations I check for the constants defined in
Pods-environment.h
but I can't reach it from the target project.Should I copy it as you have to with the Acknowledgements or I'm just doing it wrong?
The text was updated successfully, but these errors were encountered: