Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile under Xcode 12.4 #271

Open
fiveyears opened this issue Apr 4, 2021 · 7 comments
Open

Can't compile under Xcode 12.4 #271

fiveyears opened this issue Apr 4, 2021 · 7 comments

Comments

@fiveyears
Copy link

I can't use it under Xcode 12.4 'cause of:
public func replayValues(limit: Int = Int.max) -> ConnectableSignal<Signal<LoadingState<LoadingValue, LoadingError>, Error>> {

I get this red warning:

Self.LoadingValue' requires the types 'Self.Error' and 'Never' be equivalent

@umbrellait-mikhail-barilov

I have the same problem. Changing the language version didn't help.

@umbrellait-mikhail-barilov

It looks like it has something to do with the fact that the Never has become frozen.
https://developer.apple.com/documentation/swift/never
https://docs.swift.org/swift-book/ReferenceManual/Attributes.html#ID620

@umbrellait-mikhail-barilov

I finally find solution
extension SignalProtocol where Element: LoadingStateProtocol, Self.Error == Never {

@srdanrasic
Copy link
Contributor

Are you sure you are talking about Xcode 12.4? Which package manager do you use? I works compiles successfully in my case with SPM.

@umbrellait-mikhail-barilov

Figured it out. The problem was in the pod build system.

@fastcoretux
Copy link

And how did you solve it @umbrellait-mikhail-barilov ?
Thank you!

@pinball83
Copy link

@umbrellait-mikhail-barilov how you solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants