Archive build results
After a successful job, archive the ipa, its matching dSYM, the commit ID, and the Xcode version. If you need to reproduce the export, retain the xcarchive according to your team’s policy. Don’t rely on temporary directories that the next build may overwrite.
Prefer your existing CI artifact storage, with access controls and a retention period. Don’t include certificates, private keys, keychains, or configuration files containing secrets in artifact bundles.
Transfer files reliably
For occasional downloads, use SFTP or SCP. For larger archives, choose a tool that supports resumable transfers. On repeat syncs, transfer only changed artifacts and exclude dependency caches, temporary files, and unrelated logs.
Finish archiving before starting a transfer to avoid copying a file that’s still being written. After transfer, verify the file size and SHA-256 checksum. Once you confirm the remote copy is saved, clean up the node according to your team’s retention policy.