Skip to content

Deprecation warning: package(name:url:from:) in Package.swift (Tuist) #576

Open

Description

@thomasflad

Describe the bug
When building the project with Tuist, a deprecation warning is emitted from the GoogleSignIn-iOS dependency's
Package.swift file. The package uses the deprecated package(name:url:from:) API instead of the
recommended package(url:from:).

To Reproduce
Steps to reproduce the behavior:

  1. Create sample project with tuist
  2. Add GoogleSignIn
  3. Run tuist install
  4. Run tuist generate
  5. Run tuist build App
  6. Observe the deprecation warning in the build output

Expected behavior
The build should complete without deprecation warnings from dependencies.

Build output

  /Users/.../Tuist/.build/checkouts/GoogleSignIn-iOS/Pack
  age.swift:64:6: warning: 'package(name:url:from:)' is deprecated: use package(url:from:) instead
  [#DeprecatedDeclaration]
   62 |       url: "https://github.com/firebase/ocmock.git",
   63 |       .revision("7291762d3551c5c7e31c49cce40a0e391a52e889")),
   64 |     .package(
      |      `- warning: 'package(name:url:from:)' is deprecated: use package(url:from:) instead
  [#DeprecatedDeclaration]
   65 |       name: "GoogleUtilities",
   66 |       url: "https://github.com/google/GoogleUtilities.git",

Additional context
This warning originates from the upstream GoogleSignIn-iOS package, not from this project's code.
The name parameter in .package(name:url:from:) was deprecated in Swift 5.6 (SE-0292) in favor of
inferring the package name from the repository URL.

Activity

  1. added
    bugSomething isn't working
    triageIssues that need to be triaged
    on Jan 26, 2026
  2. added a commit that references this issue on Feb 5, 2026
    286e9cd
  3. thomasflad commented on Feb 8, 2026

    @thomasflad
    Author

    Thanks Cursor 🤗

  4. hungchenhsu commented on May 8, 2026

    @hungchenhsu

    I can also reproduce this with a regular Xcode / SwiftPM setup.

    Environment:

    • GoogleSignIn-iOS: 9.1.0
    • Xcode: 26.3
    • Swift: 6.2.4
    • Package manager: Swift Package Manager via Xcode

    The warning comes from:
    SourcePackages/checkouts/GoogleSignIn-iOS/Package.swift

    Google Sign-In still builds and works at runtime, but the warning appears during build/archive verification.

    I noticed the fix was merged into main in #579 / commit 197d23b. If a patch release is planned, it would be helpful to have this fix included.

    Thanks.

  5. cikichen commented on Jun 8, 2026

    @cikichen

    Showing All Issues

    GoogleSignIn-iOS

    /Package.swift:44:6: 'package(name:url:from:)' is deprecated: use package(url:from:) instead

    /Package.swift:48:6: 'package(name:url:from:)' is deprecated: use package(url:from:) instead

    /Package.swift:52:6: 'package(name:url:from:)' is deprecated: use package(url:from:) instead

    /Package.swift:56:6: 'package(name:url:from:)' is deprecated: use package(url:from:) instead

    /Package.swift:60:6: 'package(name:url:_:)' is deprecated: use specific requirement APIs instead (e.g. use 'branch:' instead of '.branch')

    /Package.swift:63:8: 'revision' is deprecated

    /Package.swift:64:6: 'package(name:url:from:)' is deprecated: use package(url:from:) instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssues that need to be triaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions