Skip to content

Failed wrap MatrixSDK to SwiftPM package #1497

Open
@artemkrachulov

Description

@artemkrachulov

Describe the bug
After wrapping version (v.0.23.8) as xcframework and then adding it to the project prints an error:

Failed to build module 'MatrixSDK'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)', while this compiler is 'Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)'). Please select a toolchain which matches the SDK.

Wrapping version 0.23.2 works as expected.
Connecting via pod works as expected.

To Reproduce

  1. Build xcframework (example build script https://github.com/niochat/MatrixSDK/blob/main/.github/workflows/build.yml)
  2. Add to app with SPM
  3. Run

Screenshots
Screenshot 2022-06-10 at 12 17 17 PM

Env:

  • xCode Version 13.4.1 (13F100)
  • Matrix SDK Version 0.23.8

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