Swift added its own Result
type to the standard library in version 5. As such, ReactiveSwift
removed its dependency on the third-party Result
library it had previously used , and offers these instructions to update your code:
If you have used
Result
only as dependency ofReactiveSwift
, remove all instances ofimport Result
,import enum Result.NoError
orimport struct Result.AnyError
and remove theResult
Framework from your project.Replace all cases where
NoError
was used in aSignal
orSignalProducer
withNever
Replace all cases where
AnyError
was used in aSignal
orSignalProducer
withSwift.Error
So for this particular error, just delete the import Result
line.
Please do the following steps:-
1) Delete derived data. 2) Update all Carthage. 3) Clean and build.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.