0
Bond 6.2.6をCocoaPodにインストールしました。NSObject + KVO.swiftファイルのSwift Bondコンパイルエラー
<my_proj>\Pods\Bond\Sources\Bond\Shared\NSObject+KVO.swift
エラー:
.../NSObject+KVO.swift:239:81: Cannot convert value of type '(_, _) -> UnownedUnsafe<NSObject>' to expected argument type '(_, UnownedUnsafe<NSObject>) -> _'
ソースコード:私のプロジェクトを構築する際 、エラーがファイルに登場している
deallocationDisposable.otherDisposable = object._willDeallocate.reduce(nil, {$1}).observeNext { object in
if self.observing {
object?.unbox.removeObserver(self, forKeyPath: self.keyPath, context: &self.context)
}
}
それは私に構築する能力を与えたコメント私のプロジェクト。しかし、おそらくベストプラクティスではないでしょう...