gpt4 book ai didi

ios - iPhone SDK WebRTC 集成错误

转载 作者:塔克拉玛干 更新时间:2023-11-01 21:21:56 25 4
gpt4 key购买 nike

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

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 架构)上运行。

我认为它不能用于模拟器的原因是它无法在其上进行测试。无法访问模拟器上的摄像头和麦克风。

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

关于ios - iPhone SDK WebRTC 集成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24803516/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com