Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPM failing to resolve #261

Open
roryprior opened this issue Feb 19, 2025 · 3 comments
Open

SPM failing to resolve #261

roryprior opened this issue Feb 19, 2025 · 3 comments
Labels
question Further information is requested

Comments

@roryprior
Copy link

We've recently migrated our project from the legacy Amplitude SDK to this Swift one. We're using SPM for dependency management. I'm seeing continual problems with Xcode failing to resolve the Amplitude-Swift package, various combinations of resetting caches, purging derived data and so on will typically get the project to a working state but as it breaks every time branches are switched or even on restarting Xcode this is not a very desirable workaround. I've never had an issue like this with a Swift package before; Xcode will literally go into a loop of checking out the package and deleting it until packages are reset.

When it's in a working state Xcode will still show this warning:

Image

We're also using the session replay plugin and experiments SDKs so I don't know if there's a possibility it's some kind of interaction between these? I see the session replay SDK has dependencies on both the Swift and legacy SDK which the experiments one does not.

Do you folks have any idea what could be the issue? I'm assuming this is not affecting everyone or the issue would have been raised already.

@roryprior roryprior added the question Further information is requested label Feb 19, 2025
@crleona
Copy link
Collaborator

crleona commented Feb 20, 2025

Hi @roryprior could you please provide us with the specific versions of Amplitude libraries you are using on each branch?

@roryprior
Copy link
Author

Amplitude-Swift 1.11.5
AmplitudeSessionReplay 0.1.0
experiment-ios-client 1.13.7

sub-dependencies from the above:
Amplitude 8.22.0
analytics-connector-ios 1.3.1

@crleona
Copy link
Collaborator

crleona commented Mar 4, 2025

Hi @roryprior - we've tried to reproduce this in a few variations with no luck on our end. We can take a closer look if you are able to share some minimally reproducing example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants