google / google/GoogleSignIn-iOS

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

Đang mở
#576 3 bình luận 40 reaction 0 người được giao Xem trên GitHub
bug triage
Ngôn ngữ chính
Objective-C
Star
750
Fork
282
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
9

Mô tả

**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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.