Xcode osx-WebRTC链接问题

Xcode osx-WebRTC链接问题,xcode,macos,webrtc,ninja,Xcode,Macos,Webrtc,Ninja,我正在尝试将WebRTC集成到一个OSX桌面应用程序中,但在尝试链接WebRTC库时遇到了一些错误。问题是: Undefined symbols for architecture x86_64: "_AVMediaTypeMuxed", referenced from: cricket::GetAVFoundationVideoDevices(std::vector<cricket::Device, std::allocator<cricket::Device> >

我正在尝试将WebRTC集成到一个OSX桌面应用程序中,但在尝试链接WebRTC库时遇到了一些错误。问题是:

Undefined symbols for architecture x86_64:
  "_AVMediaTypeMuxed", referenced from:
  cricket::GetAVFoundationVideoDevices(std::vector<cricket::Device, std::allocator<cricket::Device> >*) in libWebRTC-arm64-debug.a(libjingle_media.macdevicemanagermm.o)
我使用以下标志构建了WebRTC:

GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=mac target_arch=x64"
GYP_GENERATORS="ninja"
GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_mac"

当然还有以前运行的
gclient runhooks
ninja。你知道这是怎么回事吗?

要解决这个问题,你需要使用一个特定的框架来实现这个功能,在这种情况下,一个名为
AVFoundation

GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0 libjingle_objc=1 OS=mac target_arch=x64"
GYP_GENERATORS="ninja"
GYP_GENERATOR_FLAGS="$GYP_GENERATOR_FLAGS output_dir=out_mac"