Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#576 3 条评论 40 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
冷清
技术栈
swift
领域
build-system

调研方向

从 Package.swift 中第 64 行附近的依赖声明开始,这里 GoogleUtilities 使用了已弃用的 package(name:url:from:) API。使用 tuist install、tuist generate 和 tuist build App 复现;当 GoogleSignIn-iOS 依赖不再发出此弃用警告时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug triage

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.

主要语言
Objective-C
星标
751
派生
282
平均合并
2 天 15 小时
30 天内合并 PR
9

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

google/GoogleSignIn-iOS 的其他 Issue

查看 google/GoogleSignIn-iOS 的全部 Issue

相似的 Issue

更多 Objective-C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。