Skip to content

Amplify Swift via SPM makes build much slower, specially in CI #4075

@4brunu

Description

@4brunu

Describe the bug

I need to integrate Cognito in my iOS.
When I integrated Amplify Swift via SPM, it added 31 new Swift Packages.
This makes my local build slower, but the CI builds that check out all the SPM dependencies, and make a clean build, is much much slower, sometimes I get timeouts, when the CI job takes more than 1 hour.
Is there any way to only get Cognito without all of this?
Maybe getting Cognito as a XCFramework?
How to make all os this faster?

Steps To Reproduce

Steps to reproduce the behavior:
1. Add Amplify Cognito via SPM to an Xcode project.
2. Build the project (it takes much longer than before)
3. 31 new Swift Packages were added to the project
4. SPM now takes a lot of time to get the dependencies.

Expected behavior

There should be a way to only integrate Amplify Cognito, without getting all the AWS services, that end up making the builds and SPM take a lot of time.

Amplify Framework Version

2.51.2

Amplify Categories

Auth

Dependency manager

Swift PM

Swift version

5.9

CLI version

12.1.1

Xcode version

26

Relevant log output

NA

Is this a regression?

No

Regression additional context

No response

Platforms

iOS

OS Version

26

Device

iPhone 17 Pro

Specific to simulators

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions