一、从Github下载Jitsi源代码
```Java gitclonehttps://github.com/jitsi/jitsi-meet.git
```
二、全局安装ios-deploy(以防您想使用React Native CLI将应用程序部署到设备上)
sudo npm install-g ios-deploy--unsafe-perm=true
ios-deploy.png
三、安装主要依赖项
sudo npm install
四、用CocoaPods添加第三方库
cd iOSpod installcd ..
五、构建iOS的Jitsi Meet SDK
react-native start curl http://127.0.0.1:8081/index.ios.bundle -o main.jsbundle
EMFILE.png
解决方法如下:
brew updatebrew install watchman
MacOS10.15.2出现了权限问题,解决方法如下:
mkdir homebrew&&curl-L https://github.com/Homebrew/brew/tarball/master|tar xz--strip1-C homebrew//重新启动电脑brew updatebrew install watchman
再次执行react-native start,结果如下:
react-native start curl http://127.0.0.1:8081/index.ios.bundle -o main.jsbundle
react-native start.png
xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeet -destination='generic/platform=iOS' -configuration Release archive
not found.png
上面这个错误目前没有找到好的解决办法,从开源项目中复制了一份WebRTC.framework。
JitsiMeet.framework.png
如果命令构建不成功, 可以使用下面的sh ./release-sdk.sh
成功构建iOS的Jitsi Meet SDK之后,复制ios/sdk/JitsiMeet.framework(如果路径指向符号链接,请跟随符号链接)并 复制 node_modules/react-native-webrtc/ios/WebRTC.framework到您的项目中。
作者:星星编程
链接://www.greatytc.com/p/fad3c1bfd896
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。