iOS CI/CD build and test pipeline
Publication date: November 17, 2021 (Diagram history)
With this architecture, you can automate building and testing iOS apps by using AWS CodePipeline, Amazon Elastic Compute Cloud Mac instances, and AWS Device Farm.
iOS CI/CD build and test pipeline diagram
The following steps describe the architecture:
-
A developer initiates a build or test activity in AWS CodePipeline by pushing a code change to AWS CodeCommit.
-
CodePipeline detects the change in CodeCommit and invokes AWS Step Functions to start the build process.
-
An AWS Lambda function loads required build scripts from an Amazon Simple Storage Service bucket and triggers an AWS Systems Manager Run Command.
-
Build scripts initiate an iOS build on the Amazon Elastic Compute Cloud Mac instance and put the build artifacts in an Amazon S3 bucket.
-
The Systems Manager Run Command runs the build scripts on an Amazon EC2 Mac instance and sends run logs to Amazon CloudWatch.
-
CodePipeline detects the built artifacts in Amazon S3 and starts Device Farm to test the app on multiple real devices.
-
Device Farm generates test results, logs, and recordings. You can review them through the Device Farm console or through Amazon S3 pre-signed URLs.
Further reading
For additional information, see the following resources: