質問です。
現在、双方向通信を可能にしたIOSアプリを開発しているところで
Swift用のライブラリのSIOSocketをCocoaPodsでインストールしようと試みているのですが
なかなか、うまくできません。
開発言語はSwfitです
扱うライブラリはSIOSocketで
サーバーはNode.jsです。
https://github.com/MegaBits/SIOSocket
こちらがインストールしたいライブラリのurlです。
しかしながら、こちらに書いてある手順通り
コードを下記のように記述したのですが
なぜか、No Such moduleというエラーを吐いてしまいます。
以下、ViewController.Swiftです。
ViewController.Swift
1 2import UIKit 3import SIOSocket 4 5class ViewController: UIViewController { 6 7 8 9 override func viewDidLoad() { 10 super.viewDidLoad() 11 // Do any additional setup after loading the view, typically from a nib. 12 13 14 15 16 SIOSocket.socketWithHost("http://localhost:3000") { (socket: SIOSocket) in 17 self.socket = socket 18 } 19 20 21 22 23 } 24 25 override func didReceiveMemoryWarning() { 26 super.didReceiveMemoryWarning() 27 // Dispose of any resources that can be recreated. 28 } 29 30 31} 32
〜ここまで
以下、podfileです。
podfile
1# Uncomment this line to define a global platform for your project 2# platform :ios, '9.0' 3 4target 'MINE' do 5 # Comment this line if you're not using Swift and don't want to use dynamic frameworks 6 use_frameworks! 7 pod 'SIOSocket' 8 # Pods for MINE 9 10 target 'MINETests' do 11 inherit! :search_paths 12 # Pods for testing 13 end 14 15 target 'MINEUITests' do 16 inherit! :search_paths 17 # Pods for testing 18 end 19 20end 21
〜ここまで
何が原因で先ほど申しましたようなエラーを吐くのでしょうか??
原因が特定できそうな方
ぜひ、ご教示して頂ければと思います。
それでは、回答の方をお待ちしております。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/07/11 12:37