`
liyixing1
  • 浏览: 941097 次
  • 性别: Icon_minigender_1
  • 来自: 江西上饶
社区版块
存档分类
最新评论

react native boost库下载失败

阅读更多
提示类似于
curl: (56) SSLRead() return error -9806
curl: Saved to filename 'boost_1_63_0.tar.gz'

原因:init命令默认会创建最新的版本,而目前最新的0.45版本需要下载boost库编译。此库体积庞大,在国内即便科学上网也很难下载成功,导致很多人无法正常运行iOS项目。

方案一:

推荐暂时使用0.44.3的版本。
解决办法: 创建项目暂时先使用react-native init MyApp --version 0.44.3,指定某个版本。
你可以使用--version参数(注意是两个杠)创建指定版本的项目。例如react-native init MyApp --version 0.44.3。注意版本号必须精确到两个小数点。

方案二:科学上网,目前没找到啥好的科学上网手段

方案三: 更换源
xcode Failed to connect to github-production-release-asset-2e65be.s3.amazonaws.com
$ gem update --system # 这里请科学上网一下
$ gem -v
2.6.3

$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.org
# 确保只有 gems.ruby-china.org

该方案,ruby上面目测只有boost0.0.1,版本不适合

方案四:Homebrew
先安装hoomebrew

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

然后运行
brew install boost
这个会安装最新版的,最新版本的需要测试,是否对开发有影响。我测试安装的事16.5,但是跑react-native run-ios,还是会重新去下载16.3版本


方案五:问题原因:
该地址(github-production-release-asset-2e65be.s3.amazonaws.com) 需要的一些下载的访问被 国内屏蔽了,需要设置下hosts文件,使用香港的服务器。

解决办法:
在hosts文件中,加入这一行:
219.76.4.4 github-cloud.s3.amazonaws.com

这个方案目前可用,但是下载时间还是挺长的,16.3大概12m,但是下载了半个多小时。

方案六:手动下载安装
具体参照
http://blog.csdn.net/jiang_xinxing/article/details/60150346
分享到:
评论

相关推荐

    react-native boost 依赖 2019.zip

    react-native boost 环境依赖文件 解决 react-native run-ios 缺少依赖

    React Native for iOS Development

    You will then boost your development capabilities by including some popular packages already developed by the React Native community that will helps you write less but do more. Finally, you’ll learn...

    react native 依赖包

    搭建rn环境不用再等很久,放在 /Users/usename/.rncache 下,包含0.54所有依赖包,boost_1_63_0.tar.gz,double-conversion-1.1.5.tar,folly-2016.09.26.00.tar,glog-0.3.4.tar,不要解压缩,直接把这些压缩文件放...

    WeatherAppReactNative采用reactnative构建的天气预报iOSApp

    Weather-App-React-Native:采用react-native构建的天气预报iOS App

    boost-for-react-native:用于从源代码构建React Native的Boost C ++库源代码

    Boost for React Native 这是的副本,用于从源代码构建React Native。 它仅包含Boost源代码(例如,没有文档),因此下载和提取文件不会花费太长时间。 您可能不想直接使用此存储库。 其唯一目的是分发用于构建...

    React Native for iOS Development(Apress,2015)

    You will then boost your development by including some popular packages already developed by the React Native community that will helps you write less but do more. Finally, you’ll learn to how write...

    React Native for iOS Development pdf 无水印 2016第1版 0分

    You will then boost your development by including some popular packages already developed by the React Native community that will helps you write less but do more. Finally, you’ll learn to how write...

    React.Native.for.iOS.Development.14842139

    You will then boost your development by including some popular packages already developed by the React Native community that will helps you write less but do more. Finally, you’ll learn to how write...

    Boostnote的iOS和Android应用采用ReactNative构建

    Boostnote的iOS和Android应用采用React Native构建

    react-native third party

    1.glog-0.3.5.tar.gz 2.double-conversion-1.1.6.tar.gz 3.boost_1_63_0.tar.gz 4.folly-2016.10.31.00.tar.gz

    boostnote-mobile:适用于iOS和Android的Boostnote:rocket:

    下载或克隆此存储库后,在目录中运行npm install或yarn 。 用法 构建并运行 iOS react-native run-ios Android react-native run-android 贡献者 感谢所有为Boostnote做出贡献的人们! :party_popper: 支持Boost...

    boost_1_63_0.tar.gz

    资源下载不易,运行官方react-native demo使用,下载了1个多小时才下下来

    rncache.zip

    Xcode 10,11运行老版本React Native ,报错'boost/iterator/iterator_adaptor.hpp' file not found,下载词资源 ,cd ~ 覆盖即可

    Privacy-Policy

    建造安装下载或克隆此存储库后,在目录内运行npm install或yarn 。用法构建并运行iOS react-native run-ios Android react-native run-android作者和维护者 贡献者感谢所有为Boostnote做出贡献的人们! 伟大的贡献者...

    better:用作个人用药计划的app

    boost_1_63_0.tar.gz mac下会自动解包变为boost_1_63_0.tar,可用第三方工具下载 Dependence react-navigation npm install --save react-navigation UI npm install --save react-native-ui-kitten npm install --...

    Bcoins

    Bcoins 与BuyCoins Graphql API轻松通信。 与Vanilla js和其他框架(如React,Vue等)轻松集成特征BuyCoins ... 在Node和浏览器以及React Native中受支持。快速开始与香草Js const { setupBCoins } = require ( "bcoi

Global site tag (gtag.js) - Google Analytics