apollographql / apollo-ios

📱  A strongly-typed, caching GraphQL client for iOS, written in Swift.
https://www.apollographql.com/docs/ios/
MIT License
3.87k stars 717 forks source link

Package Resolution Failed: Invalid Manifest when installing a library with an Apollo dependency #3402

Closed sa-ma closed 2 months ago

sa-ma commented 2 months ago

Question

I don't know if this is the right place to ask this.

I developed a library with Swift Package Manager that uses Apollo for network calls. The problem is that the Swift package manager does not allow the installation of remote packages with a local target SE-0201 60, this stops me from adding my Swift package to other applications. Apollo Schema uses a local target for adding a schema to the Swift package so there is a conflict. Is there any way around this?

calvincestari commented 2 months ago

Hi @sa-ma - I'm not sure whether I understand your issue correctly.

What I think you're describing is that you're trying to distribute your own Swift package that uses Apollo iOS but as a local dependency? To do that you'd need to ensure that any project using your Swift package had already manually cloned the Apollo iOS repo to the path defined in your Package.swift file. This is not the way that Swift packages are meant to be distributed.

Why do you need a local dependency vs. the remote dependency?

github-actions[bot] commented 2 months ago

Do you have any feedback for the maintainers? Please tell us by taking a one-minute survey. Your responses will help us understand Apollo iOS usage and allow us to serve you better.