In order to learn RxSwift by example, I launched Rx.xcworkspace and clicked on Introduction.playground. Line 2 immediately came up with the error: No such module 'RxSwift'. The same happens if I open the playground (or any of the playgrounds in Playgrounds/ObservablesOperators).
Am I missing a step? Is this known to be broken?
Fwiw, this is in Xcode Version 6.4 (6E35b).
Hi @clozach
For the playgrounds work, you need build the library before.
1.- Select RxSwift-OSX Scheme, Product -> Scheme -> RxSwift-OSX menu
2.- Select Product -> Build menu or Command+B
Then playgrounds must work.
Remember to activate Assistant editor for to see the outputs
We'll add instructions to playgrounds, so it will be clearer in future.
Thanks!
This error will also occur if you have the Xcode -> Preferences -> Locations -> Derived Data [ Advanced... button ] -> Build Location = Legacy.
To fix it choose Build Location: Unique (which I think is the default).
good job! Thx.
Hi, I tried to integrate Playgrounds and tried to tested playground inside workspace made my cocoapods. But it shows these errors. Any idea?

Hi, @PrajeetShrestha did you build RxSwift-MaOS target before?
Hi Sergdort. As I mentioned. It is not this repo that I cloned. But I am integrating RxSwift in my own project through cocoapods. I created playground in there as well. I am able to import RxSwift and RxCocoa in the playground file but can't use the above method. There is no RxSwift-MacOS Target hence.
Oh, sorry my bad :)
Which target contains MyPlayground is it TestRx?
If so have you build TestRx?
I cleaned the 'DerivedData', and built the RxSwift-macOS scheme, and checked that the framework is there, but in playground, it still doesn't work
Hi,
Please show me how to build RxSwift-macOS to get rid of this No such module 'RxSwift' from RxSwiftPlayground.swift. I've been struggling with this for an hour but still don't know how. Below is my screenshot:

The instruction at the top of the page writes:
Please build the scheme 'RxSwiftPlayground' first
I tried to build but the still is not gone.
Thanks,
Oh shoot! I just found how to fix this: selecting a simulator instead of a physical device!

(I referenced from this link)
Regards,
The sources folder into playground file is empty, I already deleted the derived data

In my case Checking "Build Active Scheme" solved the problem.
The original thread is 5 years old and from Xcode 6.4. If someone has a modern issue with it, it would be advisable to open a new issue, so we can track it :) Thanks !
Most helpful comment
Oh shoot! I just found how to fix this: selecting a simulator instead of a physical device!
(I referenced from this link)
Regards,