Xcode 13.3 ベータ 3: 「swift package init」で「~/Library/org.swift.swiftpm/collections.json は非推奨になりました」という警告が表示されますが、新しいものの使用方法がわかりません 質問する

Xcode 13.3 ベータ 3: 「swift package init」で「~/Library/org.swift.swiftpm/collections.json は非推奨になりました」という警告が表示されますが、新しいものの使用方法がわかりません 質問する

Xcode 13.3 ベータ 3 (Xcode 13.2.1 から) にアップグレードして、 を実行しましたswift package init。非推奨の警告が生成されました。これは以前には見たことがありませんでした。

warning: Usage of /Users/sajjon/Library/org.swift.swiftpm/collections.json has been deprecated. Please delete it and use the new /Users/sajjon/Library/org.swift.swiftpm/configuration/collections.json instead.

でも私にはわからないどうやってorg.swift.swiftpm/collections.json「代わりに新しい ... を使用する」ということですか? 実際のところ、いつどのように作成されたのかさえわかりません。

何をするか?

全文印刷:

~/Developer/DeleteMe ⌚ 13:57:37
$ swift package init
2022-02-25 13:57:42.211 xcodebuild[54679:13318505] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-02-25 13:57:42.212 xcodebuild[54679:13318505] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-02-25 13:57:43.052 xcodebuild[54754:13318823] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-02-25 13:57:43.053 xcodebuild[54754:13318823] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
warning: Usage of /Users/sajjon/Library/org.swift.swiftpm/collections.json has been deprecated. Please delete it and use the new /Users/sajjon/Library/org.swift.swiftpm/configuration/collections.json instead.
Creating library package: DeleteMe

ベストアンサー1

Xcode 14.0 をインストールした後にこの問題が発生しました。削除するorg.swift.swiftpmとうまくいきました:

  1. Xcode を含め、SPM に関連するものがすべて実行されていないことを確認してください。何かを削除する前に、すべてを終了してください。

  2. ディレクトリに移動し、ディレクトリ全体org.swift.swiftpmcollectionディレクトリだけでなく、org.swift.swiftpmディレクトリ全体)を削除します。 もある場合はorg.swift.swiftpm.lock、それも削除します。

ここに画像の説明を入力してください

おすすめ記事