RxSwiftCommunity / RxRealm

RxSwift extension for RealmSwift's types
MIT License
1.15k stars 265 forks source link

Use of undeclared type 'ObservableType' #53

Closed miff closed 7 years ago

miff commented 7 years ago

Works in simulator, but fail on device. Tested on 6, 6s and iPad 2013.

icanzilb commented 7 years ago

hi, can you provide more details - what is not working exactly? have you tried if the demo app from this repo works for you?

miff commented 7 years ago

Usage of undeclared types in RxRealm.swift file.

screen shot 2016-12-22 at 12 11 37 am
icanzilb commented 7 years ago

In what way do you import RxRealm in your project? CocoaPods or some other way?

miff commented 7 years ago

Manually build from https://github.com/ReactiveX/RxSwift

icanzilb commented 7 years ago

This is an interesting problem but I'm not sure how to help you with this one. The types you see reported as missing namely Reactive, AnyObserver, and Observable are all the types RxRealm uses from RxSwift. For some reason in your setup RxRealm can't import RxSwift. If it happens only when you build for the device as you say I'd check the project's build settings because I have no idea what else it could be..

miff commented 7 years ago

Thanks, am also confused... i will try again with different build

miff commented 7 years ago

Thanks Marin, but build RxSwift with CocoaPod do the job.