Moya: Cannot install RxMoya by cocoapods

Created on 14 Feb 2019  路  2Comments  路  Source: Moya/Moya

My Podfile

source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!

target 'CococaPodsTest' do
    pod 'Moya/RxSwift', '12.0.1'
    pod 'SQLite.swift', '~> 0.11.5'
    pod 'RxSwift',    '~> 4.0'
    pod 'RxCocoa',    '~> 4.0'
end

Then,

# pod install
Analyzing dependencies
Downloading dependencies
Using Alamofire (4.8.1)
Using Moya (12.0.1)
Using Result (4.1.0)
Using RxAtomic (4.4.0)
Using RxCocoa (4.4.0)
Using RxSwift (4.4.0)
Using SQLite.swift (0.11.5)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 4 dependencies from the Podfile and 7 total pods installed.

[!] Automatically assigning platform `osx` with version `10.14` on target `CocoaPodsTest` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.```

If I want to import RxMoya, Xcode tell me no such module RxMoya.

If without import RxMoya, Xcode tell me Value of type MoyaProvider<xxx> has no member rx

Is this a bug?

How can I solve this problem??

cocoapods rxmoya

Most helpful comment

pod 'Moya/RxSwift', '~> 13.0.1'

pod deintegrate
pod install

Helped me.

All 2 comments

This is just a problem of restarting xcode.
Xcode is annoying every time... Old style IDE...

pod 'Moya/RxSwift', '~> 13.0.1'

pod deintegrate
pod install

Helped me.

Was this page helpful?
0 / 5 - 0 ratings