4

我正在尝试在 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)

你能说出我错过了什么吗?

4

0 回答 0