GetStream / stream-swift

Swift client for Stream API
https://getstream.io
BSD 3-Clause "New" or "Revised" License
35 stars 26 forks source link

Upgrade GetStream Library to use Moya 14 #25

Closed JoeCotellese closed 4 years ago

JoeCotellese commented 4 years ago

What did you do?

Tried to build my app with the GetStream library

What did you expect to happen?

I could run pod install and everything worked correctly.

What happened instead?

I received an error because my app uses Alamofire 5

I did some searching in the Moya project. The latest version works with Alamofire 5

GetStream Environment

GetStream version: 2.2.2

b-onc commented 4 years ago

Hello @JoeCotellese

As I see, on a fresh project GetStream 2.2.2 uses Alamofire 5.1 and Moya 14. What is the error you're receiving?

Parithi commented 4 years ago

I'm facing the same issue, in my Podfile, I have

  pod 'Alamofire', '~> 5.1'
  pod 'Moya', '~> 14.0'
  pod 'GetStream', '~> 2.2.2'

While installing the pods :

image

b-onc commented 4 years ago

Hello @Parithi I've opened PR #28, can you test that branch and let me know if it works?

AndrewRudyk commented 4 years ago

I have same problem: pod Alamofire (> 5.1) pod GetStreamActivityFeed (> 2.2)

And terminal error: pod install Analyzing dependencies [!] CocoaPods could not find compatible versions for pod "Alamofire": In snapshot (Podfile.lock): Alamofire (= 5.2.0, ~> 5.2)

In Podfile: Alamofire (~> 5.1)

GetStreamActivityFeed (~> 2.2) was resolved to 2.2.1, which depends on
  GetStream (~> 2.2) was resolved to 2.2.0, which depends on
    GetStream/Core (= 2.2.0) was resolved to 2.2.0, which depends on
      Moya (~> 13.0) was resolved to 13.0.0, which depends on
        Moya/Core (= 13.0.0) was resolved to 13.0.0, which depends on
          Alamofire (~> 4.1)