Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#576 コメント 3 件 リアクション 40 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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時間
マージ済み PR(30日)
9

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

google/GoogleSignIn-iOS のほかの issue

google/GoogleSignIn-iOS の issue をすべて見る

似ている issue

Objective-C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。