weex run ios 报错 /bin/sh: pod: command not found 解决方案

18:01:52: pod update18:01:52: Hot Reload socket: ws://136.187.82.187:8080/bin/sh: pod: command not found18:01:52: Command run error, please checkifthere has the same issue here: https://github.com/weexteam/weex-toolkit/issues/33718: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,说是没有安装cocopods


weex run ios 报错 /bin/sh: pod: command not found 解决方案_第1张图片
github截图

点进去doc发现就是readme。。。

直接百度安装cocopods吧。发现cocopods是基于ruby安装的,mac自带ruby,就直接安装了

sudo gem install cocoapods

然后在运行weex run ios就OK了

weex run ios


weex run ios 报错 /bin/sh: pod: command not found 解决方案_第2张图片
weex run ios运行截图

顺手吐槽一波公司这破网速...3K/s我是服的。。

你可能感兴趣的:(weex run ios 报错 /bin/sh: pod: command not found 解决方案)