无法在 iOS 上为 arm64 构建 WebRTC

问题描述

我正在尝试在 iOS 设备上构建 WebRTC.xcframework。

这是我正在运行的构建它。

gn gen out/ios_arm64device --args='target_os="ios" target_cpu="arm64" ios_code_signing_identity="********" ios_code_signing_identity_description=""'

ninja -C out/ios_arm64device sdk:framework_objc

xcodebuild -create-xcframework -framework out/is_arm64device/WebRTC.framework -output out/arm64/WebRTC.xcframework

但是,在我将 WebRTC.xcframework 添加到我的项目后,当我尝试运行它时出现以下错误

Undefined symbols for architecture arm64:
  "_OBJC_CLASS_$_RTCPeerConnectionFactory",referenced from:
      objc-class-ref in RTIWebRTcclient.o
  "_OBJC_CLASS_$_RTCDefaultVideoDecoderFactory",referenced from:
      objc-class-ref in RTIWebRTcclient.o
  "_OBJC_CLASS_$_RTCDefaultVideoEncoderFactory",referenced from:
      objc-class-ref in RTIWebRTcclient.o
  "_RTCInitializeSSL",referenced from:
      -[RTIWebRTcclient configure] in RTIWebRTcclient.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command Failed with exit code 1 (use -v to see invocation)

你能说出我遗漏了什么吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)