Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppCode doesn't prompt RxSwift classes and some other installed CocoaPods

I have installed newest version of RxSwift by CocoaPods.

While trying to use simple elements of RxSwift, like NotificationsCenter.default.rx it doesn't prompt methods to use. Interestingly sometimes it prompts for other pods and sometimes not for the rest so I have to open XCode for checking code correction.

How can I fix that?

like image 854
Nominalista Avatar asked Nov 21 '17 19:11

Nominalista


2 Answers

You need to wait for this problem to be fixed, sorry for that.

UPD: fixed in 2018.1 EAP, see here

like image 57
Stanislav Dombrovsky Avatar answered Nov 20 '22 05:11

Stanislav Dombrovsky


I experience that a lot as well. One of the ways that I make it work if one of my CocoaPods is not installed correctly is to remove the pods and the .xcworkspace file, and then close xcode, and do a pod install. This should help.

Hope it helps :)

--- Edit ---

If that doesn't help, try to remove the import RxSwift, and do a clean and build again :)

like image 2
T. Hyldgaard Avatar answered Nov 20 '22 06:11

T. Hyldgaard