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


github截图

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

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

sudo gem install cocoapods

然后在运行weex run ios就OK了

weex run ios


weex run ios运行截图

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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容