Weex run ios error "Error: Command failed: pod update"

error when running 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 said it would be fine to update weepack , but it didn"t work.

the following is the weex version information:

weex -v
   v1.3.8
 - weexpack : v1.2.4
 - weex-builder : v0.4.0
 - weex-previewer : v1.5.1
Jul.18,2021

this problem requires cocopods
cocopods to be installed based on ruby
if ruby is not installed, please ask Baidu.
install cocopods
$sudo gem install cocoapods
after installation, execute
$weex run ios
.

Menu