Skip to content

Adding the (skip'ified) Cows SPM package makes the build fail #198

Open
@helje5

Description

As per the discussion in Slack.

I create the app in Xcode (tried both 15.4 and 16b3):

helge@M2ni projects % skip init --open-xcode \
  --appid=de.zeezide.skip.tests.SkipCows \
  skip-cows \
  SkipCows
Initializing Skip application skip-cows
[✓] Resolve dependencies (41.24s)
[✓] Build skip-cows (11.77s)
[✓] Check Swift Package (0.2s)
[✓] Created module SkipCows in /Users/helge/projects/skip-cows
[✓] Opening Xcode project (0.09s)
[✓] Skip 1.0.4 init succeeded in 53.34s

I can build an run the thing in Xcode and it also shows up in the simulator. I then go to SkipCows/SkipCows/Package.swift in Xcode and add the cows dependency. This alone makes the build fail w/ 300+ errors.

Package.swift:

// swift-tools-version: 5.9
// This is a Skip (https://skip.tools) package,
// containing a Swift Package Manager project
// that will use the Skip build plugin to transpile the
// Swift Package, Sources, and Tests into an
// Android Gradle Project with Kotlin sources and JUnit tests.
import PackageDescription

let package = Package(
    name: "skip-cows",
    defaultLocalization: "en",
    platforms: [.iOS(.v16), .macOS(.v13), .tvOS(.v16), .watchOS(.v9), .macCatalyst(.v16)],
    products: [
        .library(name: "SkipCowsApp", type: .dynamic, targets: ["SkipCows"]),
    ],
    dependencies: [
        .package(url: "https://source.skip.tools/skip.git", from: "1.0.4"),
        .package(url: "https://source.skip.tools/skip-ui.git", from: "1.0.0"),
        .package(url: "https://github.com/AlwaysRightInstitute/cows.git", branch: "skip") // <===
    ],
    targets: [
        .target(name: "SkipCows", dependencies: [.product(name: "SkipUI", package: "skip-ui")], resources: [.process("Resources")], plugins: [.plugin(name: "skipstone", package: "skip")]),
        .testTarget(name: "SkipCowsTests", dependencies: ["SkipCows", .product(name: "SkipTest", package: "skip")], resources: [.process("Resources")], plugins: [.plugin(name: "skipstone", package: "skip")]),
    ]
)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions