behrang / YamlSwift

Load YAML and JSON documents using Swift
MIT License
404 stars 97 forks source link

Linux: error: product dependency 'Yaml' in package 'YamlSwift' not found #83

Open vitalz opened 3 years ago

vitalz commented 3 years ago

I've added YamlSwift to my Project package deps:

   dependencies: [
       .package(url: "https://github.com/behrang/YamlSwift.git", from: "3.4.4"),
   ]

and to target deps:

            .target(
            name: "MyAppTarget",
            dependencies: [
               .product(name: "Yaml", package: "YamlSwift"),
            ],   

Then Yaml works fine on native macOS.
But when I try to compile app code in Docker swift container (from swift:5.3-focal image) it will fail:

error: product dependency 'Yaml' in package 'YamlSwift' not found
vitalz commented 3 years ago

Is it similar to this issue?

seivan commented 3 years ago

Lemme take a look.