iPhone SDK WebRTC集成错误 [英] iPhone SDK WebRTC Integration Error

查看:41
本文介绍了iPhone SDK WebRTC集成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的iOS项目中安装 WebRTC 时,出现以下错误:

While installing WebRTC to my iOS project I am getting the following error:

Undefined symbols for architecture i386:
  "_OBJC_CLASS_$_RTCICECandidate", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCICEServer", referenced from:
      objc-class-ref in APPRTCAppClient.o
  "_OBJC_CLASS_$_RTCMediaConstraints", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCPair", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCSessionDescription", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCVideoCapturer", referenced from:
      objc-class-ref in APPRTCAppDelegate.o
  "_OBJC_CLASS_$_RTCVideoRenderer", referenced from:
      objc-class-ref in VideoView.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我该如何解决?

推荐答案

这意味着您正在尝试在模拟器上运行项目(i386是Mac的体系结构),但是该项目注定只能在iPhone上运行,iPad和iPod touch设备(armv7架构).

This means that you're trying to run the project on the simulator (i386 is the architecture for Mac), but the project is destinated to run only on iPhone, iPad and iPod touch devices (armv7 architecture).

我认为它不适用于模拟器的原因是无法对其进行测试.无法访问模拟器上的相机和麦克风.

I think the reason why it's not available for the simulator is that it cannot be tested on it. It's not possible to access the camera and the microphone on the simulator.

您尝试在iPhone 4及更高版本上运行它吗?

Did you try to run it on iPhone 4 and higher?

这篇关于iPhone SDK WebRTC集成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆