Beginning RxSwift - Part 10: Challenge: Create | Ray Wenderlich Videos

Put your new skills to work by creating a reactive algorithm to deal hands of blackjack.

This is a companion discussion topic for the original entry at

I’m getting problems with the lookup of the symbols for RxSwift in the playground for lesson 6 and lesson 8. This is the error for lesson 8:

Playground execution failed:

error: Couldn't lookup symbols:

Hi @nightfox50, this is due to an issue with Xcode and CocoaPods. Here are some suggestions and I hope one of them resolves the issue for you. First, check that you have a simulator selected and not an actual device for your active scheme. If that doesn’t work, check out these threads for some possible other resolutions or alternative approaches…


I’ve called deal function multiple times, one time, the points is over 21 so, it return with Error Busted. But it still continue to run the below deal function. I thought, once publishSubject emitted by Error, it should terminate. May I know why the function continue to run after returning with Error.


---- PublishSubject ----

deal for card count = 1
dealHand: [("🃗", 7)] -> cards 🃗 with points 7

deal for card count = 2
dealHand: [(“🃓”, 3), (“🂷”, 7)] → cards 🃓🂷 with points 10

deal for card count = 3
busted: [("🃍", 10), ("🃅", 5), ("🂷", 7)]
**error busted**

deal for card count = 4
busted: [(“🃔”, 4), (“🂱”, 11), (“🃎”, 10), (“🂹”, 9)]

deal for card count = 5
busted: [("🂷", 7), ("🃊", 10), ("🃗", 7), ("🂴", 4), ("🃅", 5)]