Giter Club home page Giter Club logo

Comments (33)

SimonTheCat avatar SimonTheCat commented on August 15, 2024 4

Temporary solution(use at your own risk):

  1. make work dir
mkdir build_rtc
cd build_rtc
  1. Install the Chromium depot tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:"$PATH"
  1. Download webrtc sources
fetch --nohooks webrtc_ios
ls

depot_tools src

cd src
  1. Check and select branches(optional. May skip this step, if you use master branch)
    4.1 Check branches
git branch -a

...
remotes/branch-heads/...
  remotes/branch-heads/m73
  remotes/branch-heads/m74
  remotes/branch-heads/m75
  remotes/branch-heads/m76
  remotes/branch-heads/m77
  remotes/branch-heads/m78
  remotes/branch-heads/m79
  remotes/branch-heads/phoglund-test
  remotes/origin/HEAD -> origin/master
  remotes/origin/infra/config
  remotes/origin/lkgr
  remotes/origin/master

4.2 checkout

git checkout remotes/branch-heads/m79
  1. sync
gclient sync
  1. create new local branch
git new-branch local_dev_fix_webrtc
  1. Find and replace "RTCCVPixelBuffer" with some prefix in sources
grep -rl --include=\*.{gn,h,m,mm} "RTCCVPixelBuffer" . | xargs sed -i .bak -e 's/RTCCVPixelBuffer/APPLE_MUST_FIX_IT_RTCCVPixelBuffer/g'
  1. Rename some files
mv ./sdk/objc/Framework/Headers/WebRTC/RTCCVPixelBuffer.h ./sdk/objc/Framework/Headers/WebRTC/APPLE_MUST_FIX_IT_RTCCVPixelBuffer.h
mv ./sdk/objc/components/video_frame_buffer/RTCCVPixelBuffer.h ./sdk/objc/components/video_frame_buffer/APPLE_MUST_FIX_IT_RTCCVPixelBuffer.h
mv ./sdk/objc/components/video_frame_buffer/RTCCVPixelBuffer.mm ./sdk/objc/components/video_frame_buffer/APPLE_MUST_FIX_IT_RTCCVPixelBuffer.mm
  1. Generating project files(arm,arm64,x64 for simulator)
gn gen out/ios_arm --args='target_os="ios" target_cpu="arm" is_debug=false ios_enable_code_signing=false'
gn gen out/ios_arm64 --args='target_os="ios" target_cpu="arm64" is_debug=false ios_enable_code_signing=false'
gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" is_debug=false ios_enable_code_signing=false'

or debug version(is_debug=true)

gn gen out/ios_arm --args='target_os="ios" target_cpu="arm" is_debug=true ios_enable_code_signing=false'
gn gen out/ios_arm64 --args='target_os="ios" target_cpu="arm64" is_debug=true ios_enable_code_signing=false'
gn gen out/ios_sim --args='target_os="ios" target_cpu="x64" is_debug=true ios_enable_code_signing=false'
  1. Compiling with ninja
ninja -C out/ios_arm framework_objc
ninja -C out/ios_arm64 framework_objc
ninja -C out/ios_sim framework_objc
  1. Join all in one "fat" framework
mkdir out/ios
cp -R out/ios_arm64/WebRTC.framework/ out/ios/WebRTC.framework
lipo -create out/ios_arm/WebRTC.framework/WebRTC out/ios_arm64/WebRTC.framework/WebRTC out/ios_sim/WebRTC.framework/WebRTC -output out/ios/WebRTC.framework/WebRTC
  1. Done! resault: out/ios/WebRTC.framework
    You may create private cocoapod repo and use as pod 'GoogleWebRTC', :git => 'your github repo'

Ref:
https://webrtc.googlesource.com/src/+/refs/heads/master/docs/native-code/ios/index.md

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024 2

so, it fixed in 12.3 beta.
I temporary build it from source with rename. Waiting for release ios 12.3.

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024 2

apple not solve the problem in release IOS 12.3

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024 1

@iStorry copy sources with this https://webrtc.org/native-code/ios/ instructions and before you compile that, you have to rename the conflicting functions

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024 1

Good news. Xcode 11.4 beta 3 has no problem. But! I hope in the release version, this will completely be fixed(i know issue: beta - no problem, release - problem has present).

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024 1

Xcode 11.4 IOS 13.x has no this issue!! Congratulations!!
Xcode 11.4 IOS 12.x getting this issue((

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

https://bugs.chromium.org/p/webrtc/issues/detail?id=10560

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

Oh wow, looks like Google WebRTC framework conflicts with some Apple's Safari WebRTC classes.
Thanks for the report. Lets hope they will fix it soon :)

from webrtc-ios.

neilyoung avatar neilyoung commented on August 15, 2024

Seeing this too but I cannot see any negative impact at runtime

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

Cool! Thanks again for the heads up!

from webrtc-ios.

iStorry avatar iStorry commented on August 15, 2024

@SimonTheCat can you please explain how did you solve this issue. Thank you

from webrtc-ios.

saroar avatar saroar commented on August 15, 2024

@SimonTheCat did you send an email about this bug?

from webrtc-ios.

jijile avatar jijile commented on August 15, 2024

How should this problem be solved?

from webrtc-ios.

jijile avatar jijile commented on August 15, 2024

How should this problem be solved? @SimonTheCat

from webrtc-ios.

iStorry avatar iStorry commented on August 15, 2024

@jijile
Check this out

@iStorry copy sources with this https://webrtc.org/native-code/ios/ instructions and before you compile that, you have to rename the conflicting functions

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

Unfortunately this still exists in iOS 13 GM seed
However only 1 class conflicts:

objc[1577]: Class RTCCVPixelBuffer is implemented in both /System/Library/PrivateFrameworks/WebCore.framework/Frameworks/libwebrtc.dylib (0x1d9081410) and /private/var/containers/Bundle/Application/C5EB8E01-9484-4081-AE20-CCDBC0AF753F/WebRTC-Demo.app/Frameworks/WebRTC.framework/WebRTC (0x1050575a0). One of the two will be used. Which one is undefined.

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

Apple doesn't want to fix this issue. There's no answer to the created ticket from Apple's bugtracker.

from webrtc-ios.

saroar avatar saroar commented on August 15, 2024

is conflict is bad for our app ? @SimonTheCat @stasel

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

@stasel i copy your message for ticket webrtc's and Apple's bugtracker

from webrtc-ios.

iStorry avatar iStorry commented on August 15, 2024

you just need to replace two/three class names i don't think it's bad for the app

from webrtc-ios.

fukemy avatar fukemy commented on August 15, 2024

so bad, i got error in ios 13.3, iphone XR

from webrtc-ios.

fukemy avatar fukemy commented on August 15, 2024

it's take my app CRASHHHHHHHHHHH

@iStorry copy sources with this https://webrtc.org/native-code/ios/ instructions and before you compile that, you have to rename the conflicting functions

Hi @SimonTheCat , it saw this website but it's really hard to change class name, can you help by provide step by step, thanks u so much

from webrtc-ios.

grago avatar grago commented on August 15, 2024

I'm building a WebRTC app right now and i'm getting this warning. It would be really bad if this causes random crashes :/

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

GoogleWebRTC prebuild binary(use at your own risk)
Remember! RTCCVPixelBuffer renamed to APPLE_MUST_FIX_IT_RTCCVPixelBuffer in this build.
GoogleWebRTC_master_release20200129.zip

from webrtc-ios.

fukemy avatar fukemy commented on August 15, 2024

i love u @SimonTheCat

from webrtc-ios.

Isuru-Nanayakkara avatar Isuru-Nanayakkara commented on August 15, 2024

Good news. Xcode 11.4 beta 3 has no problem. But! I hope in the release version, this will completely be fixed(i know issue: beta - no problem, release - problem has present).

I'm still getting this in Xcode 11.4 beta 3 😕

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

@Isuru-Nanayakkara maybe clean install Xcode 11.4?

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

i recommend build library from source

from webrtc-ios.

Isuru-Nanayakkara avatar Isuru-Nanayakkara commented on August 15, 2024

@Isuru-Nanayakkara maybe clean install Xcode 11.4?

I was previously using Xcode 11.4 beta 3. I just installed the stable Xcode 11.4 and ran it in my iPhone running the latest iOS version 13.4. Then I didn't get this error. However I ran the same project on my iPad which had the old iOS version and I still got the error. It disappeared after updating it to the latest iOS version as well.

from webrtc-ios.

ashwinau avatar ashwinau commented on August 15, 2024

Hai I'm new to WebRTC, and I want to know if there are any options to display the connected devices from singling server to our project so that we can send offers to particular device or selected device.?

from webrtc-ios.

SimonTheCat avatar SimonTheCat commented on August 15, 2024

@stasel have you tetsed GoogleWebRTC 1.1.31999?

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

@stasel have you tetsed GoogleWebRTC 1.1.31999?

Yes, I tested 1.1.31999 with iOS 14 and iPad OS 14 and it works fine except one very strange issue on iOS 14 when tapping on "video" before WebRTC connection

from webrtc-ios.

stasel avatar stasel commented on August 15, 2024

Looks like the issue has been fixed on WebRTC side as well. Closing the issue.

from webrtc-ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.