Skip to content

Instantly share code, notes, and snippets.

@dneprDroid
Last active December 2, 2020 13:25
Show Gist options
  • Save dneprDroid/c696f7cec042e4c74c9828cba1293ff2 to your computer and use it in GitHub Desktop.
Save dneprDroid/c696f7cec042e4c74c9828cba1293ff2 to your computer and use it in GitHub Desktop.
build webrtc ios fat framework
gn gen out/Release-universal -args='target_os="ios" target_cpu="x64" additional_target_cpus=["arm", "arm64", "x86"] is_component_build=false is_debug=false ios_enable_code_signing=false'
ninja -C out/Release-universal sdk:framework_objc
@dneprDroid
Copy link
Author

dneprDroid commented Mar 23, 2020

gn gen out/Release-universal -args='target_os="ios" target_cpu="arm64" is_debug=true ios_enable_code_signing=false'

@dneprDroid
Copy link
Author

gn gen out/arm -args='target_os="ios" target_cpu="arm" is_debug=false ios_enable_code_signing=false'
gn gen out/arm64 -args='target_os="ios" target_cpu="arm64" is_debug=false ios_enable_code_signing=false'
gn gen out/x86 -args='target_os="ios" target_cpu="x86" is_debug=false ios_enable_code_signing=false'

@dneprDroid
Copy link
Author

ninja -C out/arm sdk:framework_objc
ninja -C out/arm64 sdk:framework_objc
ninja -C out/x86 sdk:framework_objc

@dneprDroid
Copy link
Author

dneprDroid commented Mar 24, 2020

lipo -create ./out/arm/WebRTC.framework/WebRTC ./out/arm64/WebRTC.framework/WebRTC ./out/x64/WebRTC.framework/WebRTC -output ./out/WebRTC

@dneprDroid
Copy link
Author

dneprDroid commented Mar 31, 2020

gn gen out/x64 -args='target_os="ios" target_cpu="x64" is_debug=false ios_enable_code_signing=false'
ninja -C out/x64 sdk:framework_objc

@dneprDroid
Copy link
Author

gn gen out/Debug -args='target_os="ios" target_cpu="arm64" is_debug=true ios_enable_code_signing=false'

ninja -C out/Debug sdk:framework_objc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment