Post

Replies

Boosts

Views

Activity

Secret Environment Variables with Xcode Cloud
I see from the WWDC video that it's possible to use secrets, like an API_KEY variable, when running Xcode Cloud builds. How are these variables accessed from code? Is it something like this? ProcessInfo.processInfo.environment["API_KEY"] If so, how are we supposed to run the tests locally? Is the idea that every developer creates their own non-shared schemes and adds all secret environment variables to that scheme?
1
0
1.8k
Mar ’22