Build failure on iOS while building M105

415 views
Skip to first unread message

Dipankar Das

unread,
Nov 15, 2022, 3:26:44 PM11/15/22
to discuss-webrtc
Hi,

We are trying to build the webRTC m105 ourselves and while building for iOS we are seeing the following error when we set this flag `rtc_include_tests=true`

Running: gn gen /Users/distiller/project/build/ios-arm64/release --args='rtc_include_tests=true symbol_level=0 use_rtti=true treat_warnings_as_errors=false rtc_enable_protobuf=false toolkit_views=false rtc_include_ilbc=false build_with_mozilla=false gtest_enable_absl_printers=false enable_libaom=false use_custom_libcxx=false is_debug=false is_official_build=true target_os="ios" use_xcode_clang=true rtc_build_libevent=true ios_deployment_target="9.0" ios_enable_code_signing=false target_cpu="arm64" target_environment="simulator" cflags=["-mios-simulator-version-min=9.0"] ios_enable_code_signing=false' 

ERROR at //webrtc.gni:504:32: Assignment had no effect. xctest_module_target = "//test:google_test_runner_objc" ^------------------------------- You set the variable "xctest_module_target" here and it was unused before it went out of scope.

See //testing/test.gni:706:5: whence it was called. target(ios_test_target_type, _test_target) { ^------------------------------------------- 

See //webrtc.gni:463:3: whence it was called. test(target_name) { ^------------------ See //BUILD.gn:564:3: whence it was called. rtc_test("rtc_unittests") {

Any help regarding this is highly appreciated.

Thanks,
Dipankar.

jayso...@gmail.com

unread,
Nov 24, 2022, 1:13:28 AM11/24/22
to discuss-webrtc
Dose you able to manage or create a framework with the M105 branch without rtc_include_tests=true,

If yes kindly share with me the final command to do this, I am facing an issue with the command

gn gen out/ios_64 --args='target_os="ios" target_cpu="arm64" ios_enable_code_signing = true ios_code_signing_identity_description="iPhone Developer" ios_automatically_manage_certs = false',

Or you can help me if I missed any required parameter here. please share me 


Artiom Khachaturian

unread,
Nov 24, 2022, 1:40:46 AM11/24/22
to discuss-webrtc
I think that this GN argument 'rtc_include_tests=false' should help

Dipankar Das

unread,
Dec 7, 2022, 8:06:44 AM12/7/22
to discuss-webrtc
We were able to fix this problem by setting the following flag to true

enable_run_ios_unittests_with_xctest 

Reply all
Reply to author
Forward
0 new messages