Skip to content

Commit ed427b9

Browse files
committed
update readme add iOS config
1 parent ce22781 commit ed427b9

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ react-native link
1414

1515
#### Android
1616

17-
#### 这是一个使用 JMessage-sdk 的 React Native 插件,支持文字、图片、语言、文件消息。
18-
1917

2018
安装完毕后,在 MainApplication 中加上 JMessagePackage 即可。
2119
```
@@ -28,6 +26,21 @@ protected List<ReactPackage> getPackages() {
2826
}
2927
```
3028

29+
#### iOS
30+
31+
- 打开工程,进入 Build Settings -> Framework search paths 添加 framework 搜索路径
32+
33+
```
34+
$(SRCROOT)/../node_modules/jmessage-react-plugin/ios/RCTJMessageModule
35+
```
36+
37+
- 打开工程,进入 Build Settings -> Other Link Flag 添加一行编译选项
38+
39+
```
40+
-framework "JMessage"
41+
```
42+
43+
3144
## API
3245

3346
[API doc](./document/API.md)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"CoreAudio",
3838
"AudioToolbox",
3939
"MobileCoreServices",
40-
"libsqlite3.0"
40+
"libsqlite3"
4141
]
4242
}
4343
},

0 commit comments

Comments
 (0)