weex run ios报错“Error: Command failed: pod update”

Fundebug
  • 9.3k

运行weex run ios的时候报错:

18:01:52 : pod update
18:01:52 : Hot Reload socket: ws://136.187.82.187:8080
/bin/sh: pod: command not found
18:01:52 : Command run error, please check if there has the same issue here: https://github.com/weexteam/weex-toolkit/issues/337
18:01:52 : Error:Error: Command failed: pod update
/bin/sh: pod: command not found

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)

GitHub上说是更新weepack就好了,然而并没有用。

下面是weex版本信息:

weex -v
   v1.3.8
 - weexpack : v1.2.4
 - weex-builder : v0.4.0
 - weex-previewer : v1.5.1
回复
阅读 2.9k
1 个回答

这个问题需要安装cocopods
cocopods需要基于ruby安装
未安装ruby请百度。
安装cocopods
$ sudo gem install cocoapods
安装好后在执行
$ weex run ios
就可以了。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏