Skip to content

Using a local Skip build requires updating Package.swift #190

@dfabulich

Description

@dfabulich
% cd /tmp
% skip init --transpiled-app --appid=some.app.id app-project AppName --no-build --git-repo
% cd app-project
% git commit -m "initial commit"
% cd ~/git/stonehack
% ls
skip			skipstone		stonehack.xcworkspace
% cd skipstone
% xcodebuild -workspace /tmp/app-project/Project.xcworkspace -scheme "AppName App" -destination "generic/platform=iOS Simulator" -skipPackagePluginValidation
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace /tmp/app-project/Project.xcworkspace -scheme "AppName App" -destination "generic/platform=iOS Simulator" -skipPackagePluginValidation

Resolve Package Graph

Updating from https://source.skip.tools/skip-ui.git

Updating from https://source.skip.tools/skip.git

Resolve Package Graph

Updating from https://source.skip.tools/skip.git

Updating from https://source.skip.tools/skip-ui.git


Resolved source packages:
  app-project: (null)

2026-02-26 10:44:02.272 xcodebuild[30691:2372626] Writing error result bundle to /var/folders/1l/jbmc3w7947x9ljkj_260bmrc0000gn/T/ResultBundle_2026-26-02_10-44-0002.xcresult
xcodebuild: error: Could not resolve package dependencies:
  Failed to resolve dependencies Dependencies could not be resolved because root depends on 'skip' 1.7.2..<2.0.0.
'skip' >= 1.7.2 cannot be used because no versions of 'skip' match the requirement 1.7.3..<2.0.0 and package 'skip' is required using a stable-version but 'skip' depends on an unstable-version package 'skipstone'.

I was able to workaround this by modifying Package.swift in my project like this:

diff --git i/Package.swift w/Package.swift
index bdd4526..33bf955 100644
--- i/Package.swift
+++ w/Package.swift
@@ -10,7 +10,7 @@ let package = Package(
         .library(name: "AppName", type: .dynamic, targets: ["AppName"]),
     ],
     dependencies: [
-        .package(url: "https://source.skip.tools/skip.git", from: "1.7.2"),
+        .package(path: "/Users/dfabulich/git/stonehack/skip"),
         .package(url: "https://source.skip.tools/skip-ui.git", from: "1.0.0")
     ],
     targets: [

But I don't remember that being required when I've hacked on Skip in the past; it's certainly not documented in the README.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingprojectIssues involving the structure of a Skip project, including Xcode, Gradle, Studio, fastlane and CI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions