Skip to content

SPM fails to load the library as a sub-dependency #334

@via-guy

Description

@via-guy

Our app was referencing a private Analytics library that was referencing the mParticle SDK, and we were getting a lot of failures in our CI/CD where our app failed to build because the Analytics library failed to find the binary SDK. This required us to convert back to CocoaPods.

Has anyone else had this issue?

I investigated ways to solve this, and there were 2 options:

First is to change Package.swift to provide the source code instead of generated frameworks. This proved very difficult to do because SPM doesn't support mixed languages. However, with some focus it shouldn't be too hard to resolve.

Second is to convert all the code to Swift. This seems to be a lot more complicated, but might be a good problem for the future of the library.

Thoughts?

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