You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Xcode运行报错:Module 'agora_rtc_engine'未找到,常规修复方法无效

解决Xcode中Module 'agora_rtc_engine' not found报错的方案
  • 确认打开的是项目的.xcworkspace文件而非.xcodeproj,pod install生成的依赖仅在workspace中生效,直接打开xcodeproj会导致找不到pod模块。
  • 彻底清理Pod缓存后重新安装:
    1. 进入项目的ios目录,删除Pods文件夹和Podfile.lock文件
    2. 执行flutter pub get同步Flutter依赖
    3. 执行pod install --repo-update更新Pod仓库并重新安装依赖
  • 清理Xcode本地缓存:
    1. 按下Command+Shift+K清理Xcode构建文件夹
    2. 删除Xcode的Derived Data:前往~/Library/Developer/Xcode/DerivedData,找到对应项目的文件夹并删除
  • 检查pubspec.yaml中agora_rtc_engine的版本,确保与当前Flutter版本兼容,尝试切换到稳定版(比如指定^6.0.0这类经过验证的版本),然后重新执行flutter pub get和pod install
  • 检查Xcode Build Settings配置:
    1. 选中项目target,进入Build Settings标签
    2. 搜索Framework Search Paths,确保包含$(inherited)和${PODS_ROOT}/agora_rtc_engine/Frameworks(若路径存在问题可手动添加)
  • 若上述方法无效,尝试删除项目根目录的.flutter-plugins和.flutter-plugins-dependencies文件,再重新执行flutter pub get和pod install

内容的提问来源于stack exchange,提问作者Safeeda Kabeer

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 22:50:55