trouble building for iOS

102 views
Skip to first unread message

Taylor Holliday

unread,
Mar 20, 2024, 4:01:47 AM3/20/24
to discuss-webrtc
Hello :)

I'm having some trouble building for iOS from source. I can't use binaries because we need to apply patches. Anyway, hitting this:

gn gen out/ios --args='target_os="ios" target_cpu="arm64"' --ide=xcode
ERROR at //webrtc.gni:545: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.

Via these template invocations:
  rtc_test("rtc_unittests")  //BUILD.gn:592
  test("rtc_unittests")  //webrtc.gni:504
  mixed_test("rtc_unittests")  //testing/test.gni:882
  ios_app_bundle("rtc_unittests")  //testing/test.gni:149
  executable("rtc_unittests_executable")  //build/config/ios/rules.gni:589

See //build/config/ios/rules.gni:589:3: whence it was called.
  executable(_executable_target) {
  ^-------------------------------
See //testing/test.gni:149:3: whence it was called.
  target(invoker.target_type, target_name) {
  ^-----------------------------------------
See //testing/test.gni:882:5: whence it was called.
    mixed_test(_test_target) {
    ^-------------------------
See //webrtc.gni:504:3: whence it was called.
  test(target_name) {
  ^------------------
See //BUILD.gn:592:3: whence it was called.
  rtc_test("rtc_unittests") {
  ^--------------------------

Here's my build script:

git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
ln -s /Library/Frameworks/Python.framework/Versions/3.12/bin/python3 depot_tools/python
export PATH=`pwd`/depot_tools:$PATH

fetch --nohooks webrtc_ios
gclient sync
gn gen out/ios --args='target_os="ios" target_cpu="arm64"' --ide=xcode

Just trying to follow instructions at https://webrtc.github.io/webrtc-org/native-code/ios/

Any help appreciated :)
Reply all
Reply to author
Forward
0 new messages