Deprecation warning: package(name:url:from:) in Package.swift (Tuist)
还没有人认领这个 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 内容生成。
描述
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:
- Create sample project with tuist
- Add GoogleSignIn
- Run tuist install
- Run tuist generate
- Run tuist build App
- 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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
google/GoogleSignIn-iOS 的其他 Issue
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 72/100
google/GoogleSignIn-iOS#621 ·
-
enhancement triage
难度 2/5 1-3 小时 新手友好度 76/100
google/GoogleSignIn-iOS#620 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
google/GoogleSignIn-iOS#440 · 4 条评论 · 2 个 reaction ·
-
enhancement triage
难度 4/5 3-5 天 新手友好度 48/100
google/GoogleSignIn-iOS#611 ·
-
难度 4/5 3-5 天 新手友好度 45/100
google/GoogleSignIn-iOS#607 ·
查看 google/GoogleSignIn-iOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 84/100
-
难度 2/5 1-3 小时 新手友好度 72/100
noah-nuebling/mac-mouse-fix#2054 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
obsproject/obs-studio#13918 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
HigherOrderCO/Bend#842 · 2 条评论 ·