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 718 forks source link

Distribute Apollo using .xcframework(s) instead of Swift Package Manager #1895

Closed chris-h-mox closed 3 years ago

chris-h-mox commented 3 years ago

Feature request

Hi, would you consider providing an option to integrate Apollo using one or more .xcframework's instead of SPM?

Motivation

SPM can be generally unreliable

Proposed solution

Distribute Apollo using .xcframework as well as SPM

Thankyou very much for your time :)

calvincestari commented 3 years ago

SPM can be generally unreliable

@chris-h-mox would you mind sharing some of the frustrations you've had with SPM.

chris-h-mox commented 3 years ago

Thanks @calvincestari :) I find i have to delete my DerivedData folder quite regularly to keep SPM functioning. Many friends and colleagues report similar issues. This is no fault of Apollo, this is simply Xcode being a bit immature in this area.

AnthonyMDev commented 3 years ago

@chris-h-mox Apollo currently supports Carthage, which I believe is basically what you are asking for.

Please look into that and let us know if it serves your purpose. If not, maybe we can get a better understanding of how you would prefer to see Apollo distributed for your needs.

chris-h-mox commented 3 years ago

Thanks for the suggestion @AnthonyMDev I'll look into that, i see Carthage is mentioned here: https://www.apollographql.com/docs/ios/installation/#installing-the-apollo-framework

chris-h-mox commented 3 years ago

Thanks @AnthonyMDev I roughly followed the instructions (changed a little to reflect more modern Carthage usage) and it worked perfectly. For future reference, this worked: