Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build webRTC Framework for ios

Tags:

ios

webrtc

I want to build the WebRTC framework. but I have some problems.

Google provides guide about this. https://webrtc.github.io/webrtc-org/native-code/ios/

here is my code

# debug build for simulator
gn gen out/ios_sim --args='target_os="ios" target_cpu="x64"'

but it failed with the following comment.

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") {
  ^--------------------------

I can't find any information about this error. Can anybody help me to solve this problem?

like image 457
hw.Jeon Avatar asked Oct 21 '25 22:10

hw.Jeon


1 Answers

Late response, but for those still struggling with this issue - I had the same problem, and solved by building with 'rtc_include_tests=false', i.e:

gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" rtc_include_tests=false'
like image 181
Garth Avatar answered Oct 24 '25 14:10

Garth