From 332cb1e8a88f2cf5ef2c5b9f89018d3a3b059c8a Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Tue, 20 Sep 2016 22:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0ats=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide.md | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/docs/guide.md b/docs/guide.md index e8f3df4..8ade1f7 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -50,11 +50,6 @@ npm config set registry https://registry.npm.taobao.org --global npm config set disturl https://npm.taobao.org/dist --global ``` -* Windows平台请注意 * - -1、你必须安装python 2.7以及一套C++环境(推荐VS2013或VS2015,VS2010及以前版本不可用) - -2、如果使用VS2015,你需要设置`npm config set msvs_version 2015 --global` ## 手动安装 @@ -64,8 +59,8 @@ npm config set disturl https://npm.taobao.org/dist --global 1. 在XCode中的Project Navigator里,右键点击`Libraries` ➜ `Add Files to [你的工程名]` 2. 进入`node_modules` ➜ `react-native-update` ➜ `ios 并选中 `RCTHotUpdate.xcodeproj` -3. 在XCode中的project navigator里,选中你的工程,在 `Build Phases` ➜ `Link Binary With Libraries` 中添加 `libRCTHotUpdate.a` -4. Run your project (`Cmd+R`)< +3. 在XCode中的project navigator里,选中你的工程,在 `Build Phases` ➜ `Link Binary With Libraries` 中添加 `libRCTHotUpdate.a` +4. Run your project (`Cmd+R`) #### Android @@ -84,8 +79,6 @@ npm config set disturl https://npm.taobao.org/dist --global ## 配置Bundle URL(iOS) -// 文档建设中 - 在工程target的Build Phases->Link Binary with Libraries中加入libz.tbd、libbz2.1.0.tbd @@ -145,6 +138,23 @@ public class MainActivity extends ReactActivity { } ``` +## iOS的ATS例外配置 +从iOS9开始,苹果要求以白名单的形式在Info.plist中列出外部的非https接口,以督促开发者部署https协议。在我们的服务部署https协议之前,请在Info.plist中添加如下例外(右键点击Info.plist,选择open as - source code): +```xml +NSAppTransportSecurity + + NSExceptionDomains + + reactnative.cn + + NSIncludesSubdomains + + + + +``` + + ## 登录与创建应用 在你的项目根目录下运行以下命令: