-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obstacle to learning RxSwift: "No such module 'RxSwift'" in example playgrounds #58
Comments
Hi @clozach For the playgrounds work, you need build the library before. 1.- Select RxSwift-OSX Scheme, Product -> Scheme -> RxSwift-OSX menu Then playgrounds must work. |
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, @PrajeetShrestha did you build |
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 |
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 The instruction at the top of the page writes:
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 |
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 ! |
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).
The text was updated successfully, but these errors were encountered: