Background:
This code is based on dated PM example written by Mattt years ago.
Goal: I'm trying to get importing to work, so I created a basic package; based on Mattt's working package. His example works flawlessly. Hence attempting to recreate from scratch.
Scenario:
- I've created a basic package.
- I've added a Dependency.
- I've added an 'import <Dependency' in package source but I'm getting the following build failure:
Here's the actual code:
// swift-tools-version:5.3 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "RicPackage", products: [ // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "RicPackage", targets: ["RicPackage"]), ], dependencies: [ .package(name: "PlayingCard", url: "https://github.com/apple/example-package-playingcard.git", from: "3.0.0") ], targets: [ // Targets are the basic building blocks of a package. A target can define a module or a test suite. // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "RicPackage", dependencies: ["PlayingCard"]), .testTarget( name: "RicPackageTests", dependencies: ["RicPackage"]), ] ) Question: Why is this happening?
What am I missing?
