Skip to content

Build fails due to hard-coded dependency on unavailable Swift snapshot (main-snapshot-2026-01-16) #30

@akkie76

Description

@akkie76

I have spent a significant amount of time debugging it. I can confirm the root cause and would like to share my findings to help move this issue forward.

The Root Cause

The project is currently unbuildable because it has a hard-coded dependency on a specific, and now unavailable, Swift development snapshot.

  1. Hard-coded Version
    The hello-swift-java/hashing-lib/build.gradle file explicitly requires main-snapshot-2026-01-16.
def sdkName = "swift-DEVELOPMENT-SNAPSHOT-2026-01-16-a_android.artifactbundle"
def swiftVersion = "main-snapshot-2026-01-16"
  1. Unavailable Toolchain
    This specific snapshot is no longer available for download from swift.org. Attempting to install it via swiftly fails with the following error:
$ swiftly install main-snapshot-2026-01-16
Error: main-snapshot-2026-01-16 does not exist at URL https://download.swift.org/development/xcode/swift-DEVELOPMENT-SNAPSHOT-2026-01-16-a/swift-DEVELOPMENT-SNAPSHOT-2026-01-16-a-osx.pkg, exiting

Conclusion

Because the required Swift toolchain cannot be installed, the build process fails immediately with exit code 1 when swiftly is invoked. This issue is not related to local caches or environment misconfiguration; it is a fundamental dependency problem.

Suggested Path Forward

To make this project usable again, the Gradle build scripts (build.gradle) and possibly the Swift package manifests (Package.swift) across the project need to be updated to use a currently available Swift toolchain (either a recent stable release or a newer development snapshot).

Thank you for maintaining this project. I hope this information helps in resolving the issue.

Metadata

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