Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
This repository was archived by the owner on Jan 7, 2025. It is now read-only.

Cannot import speechly package #7

@snowyaya

Description

@snowyaya

Describe the bug

Unable to import the speechly package

Steps to reproduce

Steps to reproduce the behavior:

  1. Go to my codebase
  2. Use swift package init
  3. Add the package by using the code from https://docs.speechly.com/client-libraries/usage/?platform=iOS
// swift-tools-version:5.3
import PackageDescription

let package = Package(
    name: "MySpeechlyApp",
    dependencies: [
        .package(name: "speechly-ios-client", url: "https://github.com/speechly/ios-client.git", from: "0.3.0"),
    ],
    targets: [
        .target(name: "MySpeechlyApp", dependencies: []),
        .testTarget(name: "MySpeechlyAppTests", dependencies: ["MySpeechlyApp"]),
    ]
)
  1. Run swift build
  2. Got the error 'the library 'Speechly' requires macos 10.10, but depends on the product 'SnapKit' which requires macos 10.11; consider changing the library 'Speechly' to require macos 10.11 or later, or the product 'SnapKit' to require macos 10.10 or earlier.`
  3. Tried adding platforms: [ .macOS(.v10_11) ],
    into the package, but still got the same error.
  4. Furthermore, import Speechly gave this error
    Could not read serialized diagnostics file: error("Invalid diagnostics signature") (in target 'xxx' from project 'xxx')
    Command EmitSwiftModule failed with a nonzero exit code

Environment

  • Platform: [XCode simulator]
  • OS: [iOS]
  • Package version [0.3.0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions