diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn index dfe15d18d7..3ee9ae5e9f 100644 --- a/webrtc/examples/BUILD.gn +++ b/webrtc/examples/BUILD.gn @@ -300,6 +300,7 @@ if (is_ios || (is_mac && target_cpu != "x86")) { deps = [ ":AppRTCMobile_ios_bundle_data", + ":AppRTCMobile_ios_frameworks", ":AppRTCMobile_lib", ] @@ -308,6 +309,18 @@ if (is_ios || (is_mac && target_cpu != "x86")) { } } + bundle_data("AppRTCMobile_ios_frameworks") { + public_deps = [ + "//webrtc/sdk:rtc_sdk_framework_objc+link", + ] + sources = [ + "$root_out_dir/WebRTC.framework", + ] + outputs = [ + "{{bundle_resources_dir}}/Frameworks/{{source_file_part}}", + ] + } + bundle_data("AppRTCMobile_ios_bundle_data") { sources = [ "objc/AppRTCMobile/ios/resources/Roboto-Regular.ttf", diff --git a/webrtc/sdk/BUILD.gn b/webrtc/sdk/BUILD.gn index 9f3ccc6b7d..3e44f9b4a3 100644 --- a/webrtc/sdk/BUILD.gn +++ b/webrtc/sdk/BUILD.gn @@ -317,7 +317,11 @@ if (is_ios || is_mac) { public_headers += [ "objc/Framework/Headers/WebRTC/RTCFileLogger.h" ] } - ldflags = [ "-all_load" ] + ldflags = [ + "-all_load", + "-install_name", + "@rpath/$output_name.framework/$output_name", + ] deps = [ ":rtc_sdk_peerconnection_objc",