devxoul / MoyaSugar

🍯 Syntactic sugar for Moya

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to refer 'RxMoyaSugarProvider'

gpeddler opened this issue · comments

import Moya
import MoyaSugar

let provider = RxMoyaSugarProvider<SampleTarget> // Use of undeclared type 'RxMoyaSugarProvider'

help me :(

@gpeddler, could you provide me your Podfile?

Here is my Podfile.
Maybe I need pod 'MoyaSugar/RxSwift'..?

platform :ios, '9.0'

def testing_pods
  pod 'Quick', '~> 0.10.0'
  pod 'Nimble', '~> 5.1.0'
end

target 'sample' do
  use_frameworks!

  pod 'SwiftyBeaver', '~> 1.1.1'

  pod 'SwiftDate', '~> 4.0'
  pod 'SwiftyJSON', '3.1.1'
  pod 'SnapKit', '~> 3.0.2'
  pod 'RealmSwift', '2.0.2'
  pod 'RxRealm', '0.2.6'

  pod 'Moya', '8.0.0-beta.3'
  pod 'Moya/RxSwift'
  pod 'MoyaSugar', '~> 0.1'

  pod 'RxSwift', '3.0.0'
  pod 'RxCocoa', '3.0.0'

  pod 'Alamofire', '4.0.1'
  pod 'Then', '~> 2.1'

  target 'sampleTests' do
    inherit! :search_paths
    testing_pods
  end

  target 'sampleUITests' do
    inherit! :search_paths
    testing_pods
  end

end

Oh, I solved it with pod 'MoyaSugar/RxSwift'
Sorry, I realized it when I'm writing the issue at a same time..