orta / cocoapods-keys

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

Can use one key with Multi-target? #179

Closed vnntsu closed 6 years ago

vnntsu commented 6 years ago

Actually, I want to use one key but with each key has different value depending on target that that key belong to. So How can I do that? Thanks....

ashfurrow commented 6 years ago

I don’t think you’ll be able to do that with just CP-Keys. I would create a different key for each target and then access the different keys depending on the target. You can do that by defining macros with a different name on each target and checking at runtime which one is defined. Good luck!

vnntsu commented 6 years ago

@ashfurrow oh, I got it. Thanks!