How to configure Jitsi-meet framework in iOS swift project to enable video call service?
问问题
2394 次
2 回答
3
EDIT : This is also working for Xcode Version 12.2 (12B45b)
on Mac OS Big Sur.
For anyone who want to embed jitsi meet iOS SDK with swift app, Following steps worked for me in Xcode Version 11.3.1 (11C505)
- Clone the jitsi-meet repository from Github
- install the necessary dependencies using
npm install
- install the necessary pods using,
cd ios && pod install && cd ..
- Then execute the following command to build up jitsi meet framework files.
xcodebuild -workspace ios/jitsi-meet.xcworkspace -scheme JitsiMeet -destination='generic/platform=iOS' -configuration Release archive
- Above command will generate
JitsiMeet.framework
folder inside\ios\sdk
. (if you see a shortcut here, Please navigate to original location.) - Create a new folder (Something like frameworks) inside your project and copy
JitsiMeet.framework
to that folder - Navigate to
node_modules/react-native-webrtc/ios/WebRTC.framework
and copyWebRTC.framework
to frameworks folder inside your app. - Then navigate to
Targets > Your project
and navigate toLink Binary with Libraries
and press little plus button and selectAdd files
from the dropdown menu in the bottom and add theJitsiMeet.framework
andWebRTC.framework
from frameworks folder inside your project. - Remember to change
ENABLE_BITCODE
toNO
andAlways Embed Swift Standard Libraries
toYES
- Navigate to
Targets > General
and change theFrameworks, Libraries and Embed Content
and change theEmbed
toEmbed without signing
orEmbed with signing
- Voila ! now import
JitsiMeet
and you are good to go.
For more information refer Jitsi Handbook
于 2020-09-09T10:00:38.003 回答
0
After adding pods, you must close the project and open .xcworkspace. And don't forgot to clean the build folder using "command + alt + shift + k".
于 2018-05-14T12:36:40.103 回答