Build M97 fail . Help!!

160 views
Skip to first unread message

Charlotte

unread,
Oct 2, 2022, 8:57:24 AM10/2/22
to discuss-webrtc
Xcode 13.4.1
Macos 12.6
python 3.10


1. install depot_tools
2. mkdir webrtc_ios  && cd webrtc_ios
3. fetch --nohooks webrtc_ios
4. cd src && gclient sync
5. git checkout refs/branch-heads/4692
6. gclient sync
7. python tools_webrtc/ios/build_ios_libs.py --bitcode

then , I got error.  How can I deal it?




INFO:root:Building WebRTC with args: target_os="ios" ios_enable_code_signing=false is_component_build=false rtc_include_tests=false is_debug=false target_environment="device" target_cpu="arm64" ios_deployment_target="12.0" rtc_libvpx_build_vp9=false enable_ios_bitcode=false use_goma=false rtc_enable_objc_symbol_export=true enable_dsyms=true enable_stripping=true
Done. Made 1141 targets from 237 files in 1764ms
INFO:root:Building target: framework_objc
ninja: Entering directory `/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/out_ios_libs/device/arm64_libs'
[2762/3438] LINK clang_arm64/protoc
FAILED: clang_arm64/protoc clang_arm64/protoc.dSYM/Contents/Info.plist clang_arm64/protoc.dSYM/Contents/Resources/DWARF/protoc
TOOL_VERSION=1663579123 ../../../build/toolchain/apple/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip ../../../third_party/llvm-build/Release+Asserts/bin/clang++  -Wcrl,dsym,clang_arm64 -Wcrl,dsymutilpath,../../../tools/clang/dsymutil/bin/dsymutil  -fuse-ld=lld -Wl,-fatal_warnings -Wl,--color-diagnostics -stdlib=libc++ -arch arm64 -no-canonical-prefixes -Wl,-dead_strip -nostdlib++ -isysroot ../../../../../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk -mmacosx-version-min=10.11.0 -Wl,-ObjC -Wcrl,strip,-x,-S -Werror -o "clang_arm64/protoc" -Wl,-filelist,"clang_arm64/protoc.rsp"
env: python: No such file or directory
[2763/3438] CC obj/third_party/usrsctp/usrsctp/sctp_output.o
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
  File "/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/tools_webrtc/ios/build_ios_libs.py", line 353, in <module>
    sys.exit(main())
  File "/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/tools_webrtc/ios/build_ios_libs.py", line 245, in main
    BuildWebRTC(lib_path, environment, arch, args.build_config,
  File "/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/tools_webrtc/ios/build_ios_libs.py", line 208, in BuildWebRTC
    _RunCommand(cmd)
  File "/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/tools_webrtc/ios/build_ios_libs.py", line 116, in _RunCommand
    subprocess.check_call(cmd, cwd=SRC_DIR)
  File "/opt/homebrew/Cellar/pyt...@3.10/3.10.6_2/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/third_party/depot_tools/ninja', '-C', '/Users/jr/Documents/iOS/webrtcSource/webrtc_ios/src/out_ios_libs/device/arm64_libs', 'framework_objc']' returned non-zero exit status 1.

Gonzalo Garzon

unread,
Nov 17, 2022, 1:33:56 PM11/17/22
to discuss-webrtc
I faced the same issue, installed python2 and it worked.
https://www.python.org/downloads/release/python-2718/
Reply all
Reply to author
Forward
0 new messages