RxSwiftのPlaygroundが error: Couldn't lookup symbols が出て動かないとき
1181 ワード
問題
RxSwiftの勉強をするためにPlaygroundで遊ぼうと思ったら error: Couldn't lookup symbols:
というエラーが発生し動作しない。
以下のようにPlayground環境を作った。
- プロジェクト作成
-
pod init
実行 - Podfile に
pod RxSwift
とpod RxCocoa
を追加 -
pod install
実行 - Xcodeの「File」-> 「New」 -> 「Playground」でPlaygroundを追加
-
import RxSwift
を記述しRxSwiftのなにかを書く
環境
- Xcode -> Version 10.0 beta 5 (10L221o)
- CocoaPods -> 1.5.3
- RxSwift -> 4.2.0
解決策
以下を参考に次のように試した。
https://github.com/ReactiveX/RxSwift/issues/1660#issuecomment-404779160
- Playground上に書いた
import RxSwift
を削除 - クリーン (CMD + Shift + K)
- ビルド (CMD + B) (RxSwiftをimportしていないのでもちろんエラーで終わる)
-
import RxSwift
を再び復活させる - 無事に動く!!
Author And Source
この問題について(RxSwiftのPlaygroundが error: Couldn't lookup symbols が出て動かないとき), 我々は、より多くの情報をここで見つけました https://qiita.com/kainos/items/68bf0fb90c06cb802cfe著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .