webrtc-sdk / webrtc-build

webrtc build scripts
MIT License
22 stars 23 forks source link

How to integrate libwebrtc.a with Xcode #21

Closed cgeffect closed 4 months ago

cgeffect commented 4 months ago

I downloaded this file https://github.com/webrtc-sdk/webrtc-build/releases/download/m104.5112.09/webrtc.macos_arm64.tar.gz, How to integrate static libraries and headers into the Xcode project, because I found that there are some test and build directories, which should not be needed, which are the interfaces required by c++? image However, the return absl header file cannot be found, because third_party's file lookup does not use include as the root node. We also need to add third_party/abseil-cpp to the Xcode header search Paths to find absl. image

cgeffect commented 4 months ago

import <sdk/objc/api/peerconnection/RTCPeerConnectionFactory.h>

call this func error /* Initialize an RTCVideoTrack with a source and an id. /

cgeffect commented 4 months ago

已解决