问题
How to configure Jitsi-meet framework in iOS swift project to enable video call service?
回答1:
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".
回答2:
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.frameworkfolder 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.frameworkto that folder - Navigate to
node_modules/react-native-webrtc/ios/WebRTC.frameworkand copyWebRTC.frameworkto frameworks folder inside your app. - Then navigate to
Targets > Your projectand navigate toLink Binary with Librariesand press little plus button and selectAdd filesfrom the dropdown menu in the bottom and add theJitsiMeet.frameworkandWebRTC.frameworkfrom frameworks folder inside your project. - Remember to change
ENABLE_BITCODEtoNOandAlways Embed Swift Standard LibrariestoYES - Navigate to
Targets > Generaland change theFrameworks, Libraries and Embed Contentand change theEmbedtoEmbed without signingorEmbed with signing - Voila ! now import
JitsiMeetand you are good to go.
For more information refer Jitsi Handbook
来源:https://stackoverflow.com/questions/50324812/jitsi-meet-framework-configuration-in-ios