{"id":22778979,"url":"https://github.com/swarm-cloud/apple-webrtc","last_synced_at":"2025-04-15T14:21:29.447Z","repository":{"id":43094620,"uuid":"365996677","full_name":"swarm-cloud/Apple-WebRTC","owner":"swarm-cloud","description":"WebRTC framework for ios, macOS and tvOS","archived":false,"fork":false,"pushed_at":"2022-03-18T17:05:43.000Z","size":4,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T21:11:23.468Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swarm-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T10:01:22.000Z","updated_at":"2024-10-23T04:20:41.000Z","dependencies_parsed_at":"2022-08-19T14:41:25.277Z","dependency_job_id":null,"html_url":"https://github.com/swarm-cloud/Apple-WebRTC","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarm-cloud%2FApple-WebRTC","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarm-cloud%2FApple-WebRTC/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarm-cloud%2FApple-WebRTC/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swarm-cloud%2FApple-WebRTC/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swarm-cloud","download_url":"https://codeload.github.com/swarm-cloud/Apple-WebRTC/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249085438,"owners_count":21210267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-11T20:07:27.936Z","updated_at":"2025-04-15T14:21:29.405Z","avatar_url":"https://github.com/swarm-cloud.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Apple WebRTC\n\n## Sync official repo\n\nFollow official [WebRTC iOS development](https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/ios/index.md) guide to sync official repo.\n\nNote: all commands are executed on Python 2.x shell.\n\n## Build stripped version of WebRTC for iOS and tvOS\n\nChange directory into `src`, run:\n\n```bash\ngit remote add cdnbye https://github.com/cdnbye/DataChannel.git\ngit fetch cdnbye\ngit checkout dc_only_ios\n```\n\nThen change directory into parent of `src`, run `gclient sync`.\n\nPut `tvosify-os.sh` and `tvosify-sim.sh` in parent of `src`, then run:\n\n```bash\ncd src \u0026\u0026 \\\npython tools_webrtc/ios/build_ios_libs.py --bitcode --arch arm64 x64 -o out/iphone_libs/ \u0026\u0026 \\\ngn gen out/tvos_arm64 --args='target_os = \"ios\" target_cpu = \"arm64\" ios_enable_code_signing = false use_xcode_clang = true is_component_build = false is_debug = false ios_deployment_target = \"10.0\" rtc_libvpx_build_vp9 = false enable_ios_bitcode = true use_goma = false enable_dsyms = true enable_stripping = true' \u0026\u0026 \\\n../tvosify-os.sh ./out/tvos_arm64 \u0026\u0026 \\\nninja -C out/tvos_arm64 framework_objc \u0026\u0026 \\\ngn gen out/tvos_x64 --args='target_os = \"ios\" target_cpu = \"x64\" ios_enable_code_signing = false use_xcode_clang = true is_component_build = false is_debug = false ios_deployment_target = \"10.0\" rtc_libvpx_build_vp9 = false enable_ios_bitcode = true use_goma = false enable_dsyms = true enable_stripping = true' \u0026\u0026 \\\n../tvosify-sim.sh ./out/tvos_x64 \u0026\u0026 \\\nninja -C out/tvos_x64 framework_objc\n```\n\n## Build original version of WebRTC for macOS\n\nChange directory into `src`, run:\n\n```bash\ngit checkout cdnbye-mac\n```\n\nThen change directory into parent of `src`, run `gclient sync`.\n\nThen run:\n\n```bash\ncd src \u0026\u0026 \\\ngn gen out/mac_x64 --args='target_os = \"mac\" target_cpu = \"x64\" is_component_build = false is_debug = false use_goma = false enable_dsyms = true enable_stripping = true' \u0026\u0026 \\\nninja -C out/mac_x64 mac_framework_objc \u0026\u0026 \\\ngn gen out/mac_arm64 --args='target_os = \"mac\" target_cpu = \"arm64\" is_component_build = false is_debug = false use_goma = false enable_dsyms = true enable_stripping = true' \u0026\u0026 \\\nninja -C out/mac_arm64 mac_framework_objc \u0026\u0026 \\\nlipo -create out/mac_x64/WebRTC.framework/WebRTC out/mac_arm64/WebRTC.framework/WebRTC -output out/WebRTC-mac-fat\n```\n\nNote: since the stripped version is a little bit old, which doesn't support build for macOS arm64, so macOS uses a different version, so to macOS version after iOS/tvOS version, or vice-versa, you need to checkout branch and run `gclient sync` again.\n\n## Create xcframework\n\nIn directory `src`, run:\n\n```bash\nrm -rf out/WebRTC.xcframework\n\nxcodebuild -create-xcframework \\\n  -framework out/iphone_libs/arm64_libs/WebRTC.framework \\\n  -framework out/iphone_libs/x64_libs/WebRTC.framework \\\n  -framework out/tvos_arm64/WebRTC.framework \\\n  -framework out/tvos_x64/WebRTC.framework \\\n  -framework out/mac_fat/WebRTC.framework \\\n  -output out/WebRTC.xcframework\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarm-cloud%2Fapple-webrtc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswarm-cloud%2Fapple-webrtc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarm-cloud%2Fapple-webrtc/lists"}