如何为ios构建webRTC框架

hw.*_*eon 3 ios webrtc

我想构建WebRTC框架。但我有一些问题。

谷歌提供了相关指南。 https://webrtc.github.io/webrtc-org/native-code/ios/

这是我的代码

# debug build for simulator
gn gen out/ios_sim --args='target_os="ios" target_cpu="x64"'
Run Code Online (Sandbox Code Playgroud)

但由于以下评论而失败。

ERROR at //webrtc.gni:486:32: Assignment had no effect.
        xctest_module_target = "//base/test:google_test_runner"
                               ^-------------------------------
You set the variable "xctest_module_target" here and it was unused before it went
out of scope.
See //testing/test.gni:451:5: whence it was called.
    target(ios_test_target_type, _test_target) {
    ^-------------------------------------------
See //webrtc.gni:443:3: whence it was called.
  test(target_name) {
  ^------------------
See //BUILD.gn:536:3: whence it was called.
  rtc_test("rtc_unittests") {
  ^--------------------------
Run Code Online (Sandbox Code Playgroud)

我找不到有关此错误的任何信息。有人能帮我解决这个问题吗?

小智 8

回复晚了,但对于那些仍在解决这个问题的人来说 - 我遇到了同样的问题,并通过使用“rtc_include_tests = false”构建来解决,即:

gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" rtc_include_tests=false'
Run Code Online (Sandbox Code Playgroud)