Skip to content

Missing generated Swift bindings source #51

@danieldaquino

Description

@danieldaquino

Summary

The repository is missing a generated Swift source file necessary for using the library with Swift packages.

Preconditions

Orange SDK: 34367b63426a469c56db1b73595659b74861f912
Swift: Most likely non-specific, but here is the version I am running:

% swift --version
swift-driver version: 1.127.15 Apple Swift version 6.2.4 (swiftlang-6.2.4.1.4 clang-1700.6.4.2)
Target: arm64-apple-macosx26.0

Steps to reproduce

  1. Create a new empty Swift package
mkdir orange-sdk-client-test
cd orange-sdk-client-test
git init
swift package init
git add --all
git commit -m "Initial commit"
  1. Add the Orange SDK as a dependency. Example Package.swift:
// swift-tools-version: 6.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "orange-sdk-client-test",
    products: [
        // Products define the executables and libraries a package produces, making them visible to other packages.
        .library(
            name: "orange-sdk-client-test",
            targets: ["orange-sdk-client-test"]
        ),
    ],
    dependencies: [
        .package(url: "https://github.com/lightningdevkit/orange-sdk", revision: "34367b63426a469c56db1b73595659b74861f912")
    ],
    targets: [
        // Targets are the basic building blocks of a package, defining a module or a test suite.
        // Targets can depend on other targets in this package and products from dependencies.
        .target(
            name: "orange-sdk-client-test"
        ),
        .testTarget(
            name: "orange-sdk-client-testTests",
            dependencies: ["orange-sdk-client-test"]
        ),
    ]
)
  1. Build with
swift build

Expected behaviour

Build should succeed.

Actual behaviour

Build fails due to a missing generated Swift source file:

% swift build
Updating https://github.com/lightningdevkit/orange-sdk
Updated https://github.com/lightningdevkit/orange-sdk (0.48s)
Creating working copy for https://github.com/lightningdevkit/orange-sdk
Working copy of https://github.com/lightningdevkit/orange-sdk resolved at 34367b63426a469c56db1b73595659b74861f912
Fetching binary artifact https://github.com/lightningdevkit/orange-sdk/releases/download/v0.1.0-alpha.1/OrangeSDKFFI.xcframework.zip from cache
Fetched https://github.com/lightningdevkit/orange-sdk/releases/download/v0.1.0-alpha.1/OrangeSDKFFI.xcframework.zip from cache (14.35s)
error: 'orange-sdk': invalid custom path 'bindings/swift/Sources/OrangeSDK' for target 'OrangeSDK'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions