wattson12 / moya-argo Goto Github PK
View Code? Open in Web Editor NEWArgo mappings for Moya network requests
License: MIT License
Argo mappings for Moya network requests
License: MIT License
I'm using Argo + Moya + Moya-Argo + ReactiveCocoa but I get this error:
Ambiguous reference to member "request"
My code is:
let provider:ReactiveCocoaMoyaProvider<MyAPI> = ReactiveCocoaMoyaProvider(stubClosure: { _ in return .Immediate })
provider.request(.User(id: "24"))
.mapObject("user")
.observeOn(UIScheduler())
.start { event in
expectation.fulfill()
switch event {
case .Next(let user):
XCTAssertNotNil(user)
XCTAssertEqual(user.id, 1)
case .Failed(let error):
XCTFail("Error mapping user: \(error)")
default: break
}
}
And yes, It's running inside a XCTest.
Issue is fixed if I don't import Moya and only import Moya_Argo but then I get the error that ReactiveCocoaMoyaProvider doesn't exist.
Any idea on how to fix it?
*** Cloning Moya-Argo
*** Checking out Moya-Argo at "3.0.0"
*** xcodebuild output can be found in /var/folders/jk/cd0fk3hx45jblh4c88jm_4000000gn/T/carthage-xcodebuild.uheOfD.log
*** Skipped building Moya-Argo due to the error:
Dependency "Moya-Argo" has no shared framework schemes
If you believe this to be an error, please file an issue with the maintainers at https://github.com/wattson12/Moya-Argo/issues/new
Since Apple has released XCODE 9.0 & SWIFT 4.0 we obviously have problems with compiling Moya-Argo with cause of name overlapping.
e.g. https://travis-ci.org/wattson12/Moya-Argo/builds/278683424
Looks related to pod install on the example rather than Moya-Argo code
The version cocoapods install doesn't use decode. Seems like last code version still not pushed to cocoapods. Installed using git url and pulled the right version:
pod 'Moya-Argo', :git => 'https://github.com/wattson12/Moya-Argo.git'
See #16 for a short discussion
Failed build https://travis-ci.org/wattson12/Moya-Argo/builds/291330746
The last failure I see is
5.55s$ pod install
Analyzing dependencies
Fetching podspec for `Moya-Argo` from `../`
[!] Unable to satisfy the following requirements:
- `Cartography` required by `Podfile`
- `Cartography (= 2.1.0)` required by `Podfile.lock`
No real need for cartography to be in this demo, removing that could be the first step
Seems related to Argo's carthage dependencies
Library is still fine when used as pod from other apps
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.