8000 Is support for the Swift Package Manager available? · Issue #111 · ricohapi/theta-client · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Is support for the Swift Package Manager available? #111
Open
@sugimuraYuki

Description

@sugimuraYuki

I tried using the xcframework with the binaryTarget in Package.swift on Xcode 16.

.binaryTarget(
   name: "THETAClient",
   url: "https://github.com/ricohapi/theta-client/releases/download/1.13.0/THETAClient.xcframework.zip",
   checksum: "b03af6bf4c878f9d5b97dc65af4b61095dead583e4adee18f6110f73b4255182"
),

Build succeeded, but an error occurred and the program crashed when using the library in debug mode.
It looks like the debugger is pointing to the Kotlin native code.
However, this Kotlin file is not stored locally.

Run this code:

ThetaRepository.Companion.shared.doNewInstance(
    endpoint: endPoint,
    config: config,
    timeout: nil
) { resp, error in
    // some code
}

Then this message appears in the console:

ThetaApi: REQUEST: http://192.168.1.1/osc/info
METHOD: HttpMethod(value=GET)
COMMON HEADERS
-> Accept: application/json
-> Accept-Charset: UTF-8
-> Cache-Control: no-store
-> Content-Type: application/json; charset=utf-8
CONTENT HEADERS
-> Content-Length: 0
BODY Content-Type: null
BODY START
BODY END

ThetaApi: REQUEST http://192.168.1.1/osc/info failed with exception: kotlin.IllegalStateException: Failed to connect to InetSocketAddress(hostname=192.168.1.1, port=80).

Can't show file for stack frame : <DBGLLDBStackFrame: 0x14ae627f0> - stackNumber:5 - name:kfun:kotlin.native.internal.object-1.invokeSuspend#internal [inlined]. The file path does not exist on the file system: /opt/buildAgent/work/2fed3917837e7e79/kotlin/kotlin-native/runtime/src/main/kotlin/kotlin/native/internal/ObjCExportCoroutines.kt

How can I use this library with the Swift Package Manager?

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

      0