Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
polyv-rn
PolyvRNCloudClassDemo
Commits
0ca211c6
Commit
0ca211c6
authored
5 years ago
by
MissYasiky
Browse files
Options
Download
Email Patches
Plain Diff
LIVE-000 README 文档更新
parent
17b88329
master
develop
feature/LIVE-39451-集成多场景1.x
0.2.4
0.2.3
0.2.2
0.2.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
README.md
README.md
+34
-3
No files found.
README.md
View file @
0ca211c6
...
...
@@ -278,11 +278,20 @@ iOS 端工程的原生插件代码全部包含在 ios/PolyvCloudClassModule 文
2.
如果目标项目原来有 Podfile 文件,只需要把以下代码拷贝到 ios/Podfile 文件 中;
```
platform :ios, '9.0'
target '你的项目名' do
use_frameworks!
pod 'Masonry', '~> 1.1.0'
pod 'SDWebImage', '~> 4.4.0'
pod 'PolyvCloudClassSDK', '0.9.0-beta'
pod 'SDWebImage', '4.4.0'
pod 'PolyvCloudClassSDK', '0.9.0'
# 执行 npm install 命令之后,有可能会自动生成下面这两行配置,需要把这两行配置删掉或者注释掉
# pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'
# pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'
end
```
注意:
...
...
@@ -292,7 +301,7 @@ iOS 端工程的原生插件代码全部包含在 ios/PolyvCloudClassModule 文
3.
在命令行环境进入 ios 目录,执行
`pod install`
命令。
#### 2.3.
2
项目配置
#### 2.3.
3
项目配置
由于云课堂项目中的播放器,在播放过程中进行截图后会直接保存到系统相册,需要有访问系统相册的权限;直播间的聊天室,允许用户上传相册里的照片或拍照上传,也需要访问系统相册以及访问摄像头的权限;直播时的连麦功能需要访问麦克风以及摄像头的权限。想要正常使用以上功能,需要在文件 Info.plist 中添加这一系列权限。
...
...
@@ -302,3 +311,25 @@ iOS 端工程的原生插件代码全部包含在 ios/PolyvCloudClassModule 文
`<?xml version=``"1.0"` `encoding=``"UTF-8"``?>``<!DOCTYPE plist PUBLIC ``"-//Apple//DTD PLIST 1.0//EN"` `"http://www.apple.com/DTDs/PropertyList-1.0.dtd"``>``<plist version=``"1.0"``>``<dict>`` ``……`` ``<key>NSPhotoLibraryUsageDescription</key>`` ``<string>允许App访问相册以保存截图或读取相册视频文件</string>`` ``<key>UIBackgroundModes</key>`` ``<array>`` ``<string>audio</string>`` ``</array>`` ``……``</dict>``</plist>`
```
#### 2.3.4 Xcode 10 升级到 Xcode 11 项目运行报错问题解决
Xcode 更新到 v11之后,运行之前 v10 的项目,提示如下错误:
```
Unknown argument type '__attribute__' in method -[RCTAppState getCurrentAppState:error:]. Extend RCTConvert to support this type
```
解决方案:
Xcode 打开项目,找到 Library 路径下的 React 项目,找到位于路径 React/Base 下的文件 RCTModuleMethod.mm 文件,找到如下方法 'RCTParseUnused',添加 return 语句中的第二行:
```
static BOOL RCTParseUnused(const char **input)
{
return RCTReadString(input, "__unused") ||
RCTReadString(input, "__attribute__((__unused__))") ||
RCTReadString(input, "__attribute__((unused))");
}
```
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment