It like this.
When I remove 'Moya', and It works.
What should I do?
Your screenshot doesn't seem to work. Can you edit it ?
Your screenshot doesn't seem to work. Can you edit it ?
Can you se it now?

Do you have also Alamofire in your project?
You can run pod deintegrate and then you can run pod install
Do you have also Alamofire in your project?
You can runpod deintegrateand then you can runpod install
Thanks but it doesn't work.
This only happen if I just add Moya. and it works if I only add Alamofire.
It was good before, so I am confused now.
Hey @zxiang2013 :)
Thank you for reporting this, mind share more info like Xcode version, swift compiler version ... ?
Hey @zxiang2013 :)
Thank you for reporting this, mind share more info like Xcode version, swift compiler version ... ?
Xcode version 11.1,Swift 5
my_name/Carthage/Checkouts/Moya/Sources/RxMoya/MoyaProvider+Rx.swift:24:29: error: type 'Result<Response, Error>' has no member 'error'
single(.error(error))
~^~~~~~~~~~~~
Xcode version 12
@yourshinsuke this might be an issue where you're using the older version of Moya with newest toolchain because there is a mismatch with Result type (we stopped using an external library once the new Result type was added to Swift). Try updating to version 14, or if you can't try to make sure you have the Result library imported.
Also, please try to open a new issue since it's not really connected to this one.
@sunshinejr Thank you for replying.
However I use the version, set in my Cartfile file.
github "Moya/Moya" "15.0.0-alpha.1"
@yourshinsuke ah okay - one more question, what RxSwift version do you use?
@sunshinejr Thank you for quick response.
I use github "ReactiveX/RxSwift" "6.0.0-rc.1"
@yourshinsuke yeah that's likely an issue - we didn't prepare Moya 15 for RxSwift 6 yet - please try downgrading to 5.* for the time being.
@sunshinejr Thank you. I will try downgrading.
@sunshinejr , I am encountering the same issue. I have to upgrade to rxswift 6 as I have to use the latest xcode version with swift 5.3. Is there any solution for this error?
Most helpful comment
@yourshinsuke yeah that's likely an issue - we didn't prepare Moya 15 for RxSwift 6 yet - please try downgrading to 5.* for the time being.