Customize your advanced Xcode Cloud workflows

RSS for tag

Discuss the WWDC21 session Customize your advanced Xcode Cloud workflows.

View Session

Posts under wwdc21-10269 tag

2 Posts
Sort by:
Post not yet marked as solved
1 Replies
1.7k Views
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?
Posted
by wrightak.
Last updated
.
Post not yet marked as solved
2 Replies
2.6k Views
Hi, My name is Bin, software engineer at VBreathe in Sydney. We have a mobile app developed in Ionic Angular framework and managed to use xcode cloud to build and deploy the app to TestFlight. It worked well, but the speed is a bit slow, takes around 1 hour to finish the build. After checking the logs, the ci_post_clone.sh script took over 20 minutes to finish, because it installs bunch of tools and node packages, which are necessary to build the app. My question is that is there a way to cache these tools and node packages on xcode cloud, so no need to download & install them in every build? Cheers, Bin
Posted
by BinX.
Last updated
.