質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

Q&A

1回答

768閲覧

No such module 'Starscream' が消えない

madeinrachel

総合スコア12

Swift

Swiftは、アップルのiOSおよびOS Xのためのプログラミング言語で、Objective-CやObjective-C++と共存することが意図されています

0グッド

0クリップ

投稿2019/07/21 13:17

Starsscreamというものはすでにimportされているようなのですが、このエラーが消えません。
cocoapodsの再インストールも試みたけどダメでした。
どうしたらいいでしょうか。
この件に関して、Stack Over Flowにあったこの回答も試してみたいのですが(下記)、どういうことを指しているのかわからないのでそれも知りたいです。

build settings > frameworks search path
and set it to the following:

$(inherited) (non-recursive)
$(PROJECT_DIR)/build/Debug-iphoneos (non-recursive)
$(SRCROOT) (recursive)

swift

1import Dispatch 2import Foundation 3import Starscream 4 5/// The class that handles the engine.io protocol and transports. 6/// See `SocketEnginePollable` and `SocketEngineWebsocket` for transport specific methods. 7open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, SocketEngineWebsocket, ConfigSettable { 8 // MARK: Properties 9 10 private static let logType = "SocketEngine" 11 12 /// The queue that all engine actions take place on. 13 public let engineQueue = DispatchQueue(label: "com.socketio.engineHandleQueue") 14 15 /// The connect parameters sent during a connect. 16 public var connectParams: [String: Any]? { 17 didSet { 18 (urlPolling, urlWebSocket) = createURLs() 19 } 20 } 21 22 /// A dictionary of extra http headers that will be set during connection. 23 public var extraHeaders: [String: String]? 24 25 /// A queue of engine.io messages waiting for POSTing 26 /// 27 /// **You should not touch this directly** 28 public var postWait = [Post]() 29 30 /// `true` if there is an outstanding poll. Trying to poll before the first is done will cause socket.io to 31 /// disconnect us. 32 /// 33 /// **Do not touch this directly** 34 public var waitingForPoll = false 35 36 /// `true` if there is an outstanding post. Trying to post before the first is done will cause socket.io to 37 /// disconnect us. 38 /// 39 /// **Do not touch this directly** 40 public var waitingForPost = false 41 42 /// `true` if this engine is closed. 43 public private(set) var closed = false 44 45 /// If `true` the engine will attempt to use WebSocket compression. 46 public private(set) var compress = false 47 48 /// `true` if this engine is connected. Connected means that the initial poll connect has succeeded. 49 public private(set) var connected = false 50 51 /// An array of HTTPCookies that are sent during the connection. 52 public private(set) var cookies: [HTTPCookie]? 53 54 /// When `true`, the engine is in the process of switching to WebSockets. 55 /// 56 /// **Do not touch this directly** 57 public private(set) var fastUpgrade = false 58 59 /// When `true`, the engine will only use HTTP long-polling as a transport. 60 public private(set) var forcePolling = false 61 62 /// When `true`, the engine will only use WebSockets as a transport. 63 public private(set) var forceWebsockets = false 64 65 /// `true` If engine's session has been invalidated. 66 public private(set) var invalidated = false 67 68 /// If `true`, the engine is currently in HTTP long-polling mode. 69 public private(set) var polling = true 70 71 /// If `true`, the engine is currently seeing whether it can upgrade to WebSockets. 72 public private(set) var probing = false 73 74 /// The URLSession that will be used for polling. 75 public private(set) var session: URLSession? 76 77 /// The session id for this engine. 78 public private(set) var sid = "" 79

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

pod install 後にできる .xcworkspace の方を Xcode で開いていますか?
pod install 実行後に表示されると思いますが xcodeproj の方ではないです。

投稿2019/07/21 20:37

TakuyaAso

総合スコア1361

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

madeinrachel

2019/08/02 10:50 編集

すみません。回答の意図がうまく読み取れません。 pod install とはcocoa podsのことであっていますか? その場合、xcworkspaceというファイルを開けば良いという認識であっていますか? Socket.ioを使ってチャットアプリを作ろうとしている中でこのエラーにあたりました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだベストアンサーが選ばれていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問