如何将WebRTC导入xcode项目



我按照 webrtc.org(https://webrtc.org/native-code/ios/)的指南构建了WebRTC.framework,并将其放在我的xcode项目中,因此我创建了桥接标头以在swift类中使用它,并编写了代码。现在,如果我运行我的应用程序,它似乎启动了,但在启动屏幕显示此错误后:

dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC
Referenced from: /var/containers/Bundle/Application/4D44F30C-3D0A-47FE-86CC-BAD092422D60/AppRTC.app/AppRTC
Reason: image not found

有人可以帮助我吗? "找不到图像"是什么意思?在"gen"文件夹中,有许多带有 *.a 文件的文件夹,但我没有导入这些文件。

您必须

在Target->Genral->Embedded Binaries中添加框架。

最新更新