orta / cocoapods-keys

A key value store for storing per-developer environment and application keys
MIT License
1.55k stars 92 forks source link

Environment variable support #164

Open tspecht opened 7 years ago

tspecht commented 7 years ago

Hey guys,

I know cocoapods-keys is officially trying to read the values form the Env if found however I'm having trouble getting this running at the moment. Is this feature still supposed to be fully working and/or are there any special formats I need to take into consideration?

orta commented 7 years ago

I don't think there's any special config - we use it in every Artsy project - they look like this: https://github.com/artsy/eigen/blob/master/circle.yml#L16-L26

fwal commented 5 years ago

Can confirm that there seems to be some issue with the env handling. Have issues in CI and when I try to use envs locally it doesn't work. Will do some digging to see if I'll uncover something...

fwal commented 5 years ago

The weird part is that the plugin doesn't give any warnings or any indication at all, some validation step picks up the variables but they aren't set in the generated objc keys file... 🤔

SlaunchaMan commented 5 years ago

There’s something weird going on with our Jenkins setup too. cocoapods-keys doesn’t seem to be able to see environment variables like JENKINS_HOME, so I wind up prepending all of the shell commands with CI=1. I’m not sure if the issue is related to Jenkins, fastlane, or cocoapods-keys.

fwal commented 5 years ago

Found the problem in our setup (where we run pod keys generate instead of pod install to save time). Solved it for us in #193.