OGeek|极客世界-中国程序员成长平台

标题: ios - 如何为 WebRTC iOS 框架启用 Bitcode? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 14:01
标题: ios - 如何为 WebRTC iOS 框架启用 Bitcode?

如何在启用 Bitcode 的情况下编译 WebRTC iOS 框架。目前,由于 WebRTC 框架,我必须禁用我的项目的 Bitcode。



Best Answer-推荐答案


您需要自己构建它。
比如:

# Clone the depot tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
# Add the tools to the path
export PATH=$PATH:"`pwd`/depot_tools"
# Download the WebRTC source code
mkdir webrtc_ios
cd webrtc_ios
# This will take some time
fetch --nohooks webrtc_ios
gclient sync
# Let's start building
cd src
# Build the framework, remove --arch "arm64 x64" to build ALL architectures, including 32 bit
tools_webrtc/ios/build_ios_libs.py --bitcode --arch arm64 x64
# The framework is at out_ios_libs/WebRTC.framework

文档:https://webrtc.github.io/webrtc-org/native-code/ios/

关于ios - 如何为 WebRTC iOS 框架启用 Bitcode?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47376034/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4