Weex Project(npm run ios)-> Error:Error: Command failed: pod update

Question

Weex project run npm run ios(weex run ios)error:
Error:Error: Command failed: pod update
在这里插入图片描述

Answer

(1)update openssl, then ruby, then cocoapod.(Please select the operation according to your own situation.)
$ which openssl
/usr/bin/openssl

$ openssl version
OpenSSL 0.9.8zh 14 Jan 2016

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew update

$ brew install openssl

$ brew upgrade openssl

`` If you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

$ echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
$ source ~/.bash_profile

$ which openssl
/usr/local/opt/openssl/bin/openssl

$ openssl version
OpenSSL 1.0.2n  7 Dec 2017

$ brew install rbenv ruby-build

$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.bash_profile
$ source ~/.bash_profile

$ rbenv install --list

Available versions:
 1.8.5-p52
 1.8.5-p113
 1.8.5-p114
 1.8.5-p115
 1.8.5-p231
 1.8.6
:
 2.5.0-rc1
 2.5.0
 2.5.1
 2.6.0-dev
:

$ rbenv install 2.5.1

$ rbenv versions
 system
* 2.5.1 (set by /Users/xiaoqiang/.rbenv/version)

$ ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin18]

$ rbenv global 2.5.1

$ rbenv versions
 system
* 2.5.1 (set by /Users/username/.rbenv/version)

$ ruby --version
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin16]

$ gem install cocoapods -n /usr/local/bin

$ which pod
/usr/local/bin/pod

$ pod --version
1.5.3
(2)npm run ios(weex run ios)

If an error occurs:
{
stderr: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
run:
sudo xcode-select --switch /Applications/Xcode6-Beta.app/Contents/Developer/
(Tips:Xcode6-Beta.appis my Xcode version)
}
else
{
在这里插入图片描述
}

Success

在这里插入图片描述
中国式英语,应该能看懂吧,哈哈~

©️2020 CSDN 皮肤主题: 创作都市 设计师: CSDN官方博客 返回首页
实付0元
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值