简体   繁体   English

无法在使用 Agora iOS SDK 的模拟器上运行我的应用程序

[英]Not able to run my app on Simulator which using Agora iOS SDK

I am building an iOS application which is using Agora iOS SDK pod 'AgoraRtcEngine_iOS' version 3.3.2我正在构建一个 iOS 应用程序,它使用 Agora iOS SDK pod 'AgoraRtcEngine_iOS' 版本 3.3.2

When I run application using real device it is working fine.当我使用真实设备运行应用程序时,它工作正常。 But when I build application using simulator it gives an error:但是当我使用模拟器构建应用程序时会出现错误:

Framework not found AgoraAIDenoiseExtension找不到框架 AgoraAIDenoiseExtension

My laptop has Apple M1 chip and OS Big Sur version 11.2我的笔记本电脑有 Apple M1 芯片和 OS Big Sur 11.2 版

Please help!请帮忙!

I solved this issue by adding AgoraAIDenoiseExtension.xcframework file in Frameworks and Libraries我通过在框架和库中添加 AgoraAIDenoiseExtension.xcframework 文件解决了这个问题

Steps to follow:要遵循的步骤:

  1. Select your project Select 您的项目
  2. Go to General Tab Go 到常规选项卡
  3. Go to Frameworks and Libraries and click on + button. Go 到框架和库,然后单击 + 按钮。
  4. Add respective framework files添加相应的框架文件
  5. Clean and Run your project清理并运行您的项目

I see that you've solved it with a temporary fix Dalijeet, but another solution would be to use swift package manager here:我看到您已经通过临时修复 Dalijeet 解决了它,但另一种解决方案是在此处使用 swift package 管理器:

https://github.com/AgoraIO/AgoraRtcEngine_iOS https://github.com/AgoraIO/AgoraRtcEngine_iOS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM