diff --git a/docs/guide.md b/docs/guide.md index 65cc331..80a8b6d 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -55,7 +55,8 @@ npm install --save react-native-update@3.x 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`) +4. +5. Run your project (`Cmd+R`) #### Android diff --git a/ios/RCTHotUpdate/RCTHotUpdate.h b/ios/RCTHotUpdate/RCTHotUpdate.h index 1276bd3..da47c6e 100644 --- a/ios/RCTHotUpdate/RCTHotUpdate.h +++ b/ios/RCTHotUpdate/RCTHotUpdate.h @@ -6,7 +6,11 @@ // Copyright © 2016 erica. All rights reserved. // +#if __has_include() +#import +#else #import "RCTBridgeModule.h" +#endif @interface RCTHotUpdate : NSObject diff --git a/package.json b/package.json index 23a3591..73e8d8e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "4.0.0", + "version": "4.0.3", "description": "react-native hot update", "main": "lib/index.js", "scripts": {