NB Fouda
NB Fouda

Reputation: 1393

RxSwift crashes when running UnitTest on XCode 9.3

did anyone face RxSwift crash on XCode 9.3? here is the function that causes the problem

func setupValidation(result: Variable<ValidationState>, testValues: Observable<Bool>...) {
let disposeBag: DisposeBag = DisposeBag()
Validation
  .combine(testValues)
  .bind(to: result)
  .disposed(by: disposeBag)}

here is the error:

Undefined symbols for architecture arm64: "(extension in RxCocoa):RxSwift.ObservableType.bind(to: RxSwift.Variable) -> RxSwift.Disposable"

Upvotes: 1

Views: 576

Answers (1)

christopher.online
christopher.online

Reputation: 2774

Probably related to this. Try adding adding import RxCocoa and import RxSwift to the unit test files to solve the linker build error.

Upvotes: 1

Related Questions