Cache the resolved Swift package dependencies with the new key-based caching Steps, Save Cache and Restore Cache.
- Add the Restore SPM Cache Step to the Workflow.
- Add one of the usual iOS build steps, such as Xcode Test for iOS.
- Add the Save SPM Cache Step.
The SPM specific cache steps use optimal cache key and path configurations maintained by Bitrise. If you want full control over what should be cached then please check out the generic Restore Cache and Save Cache Steps.
You can always check out what key and path settings the SPM cache step uses: Github code snippet
- restore-spm-cache@2: {}
- xcode-test@5: {}
- save-spm-cache@1: {}