Complete the code to declare the package name in Package.swift.
let package = Package(name: [1])The package name must be a string literal, so it needs quotes.
Complete the code to specify the Swift tools version at the top of Package.swift.
// swift-tools-version:[1]The current recommended Swift tools version is 5.7 for modern packages.
Fix the error in the dependencies array by completing the code.
dependencies: [
.package(url: "https://github.com/apple/swift-collections.git", from: [1])
],The version must be a string literal inside quotes.
Fill in the blank to define a target with a dependency on the swift-collections package.
targets: [
.target(
name: "MyLibrary",
dependencies: [.product(name: [1], package: "swift-collections")]
)
],The dependency name is "Collections" as defined by the swift-collections package.
Fill both blanks to create a library product named MyLibrary with the target MyLibrary.
products: [
.library(
name: [1],
targets: [[2]]
)
],The product name and target name must match exactly and be string literals.
