Closed valentinwallet closed 7 years ago
Does it work if you add Moya
dependency on Podfile?
I have added the dependency of Moya in my podfile and also reboot my xcode, still the same error
@Zanclus oh, you should return baseURL
. url
is an API for override default url behavior.
Okay thanks perfect! I have solved the problem like this :
var baseURL: URL { return URL(string: "https://bike-track-api.herokuapp.com")! }
var url: URL {return self.defaultURL}
@Zanclus Or, in this case you can just remove url
property. It's optional :)
Hi,
I need to put several http headers with my project, that's why I want to use your abstraction of Moya and have something like this :
But i got an error : Type 'BikeTrackTestRx' does not conform to protocol 'TargetType'
Maybe I don't have the good version of Moya, so there is my podfile :
Thanks in advance 😃