xcode ios 使用webrtc的错误汇集

xcode ios 使用webrtc的错误汇集,第1张

1、xcode Use of undeclared identifier 'AF_UNSPEC'
       webrtc Unknown type name 'in_addr'

     Missing byte order functions for this arch.
增加宏 -DWEBRTC_POSIX -DWEBRTC_MAC -DWEBRTC_IOS

2、unknown type name 'constexpr' xcode
c++使用标准14

3、Failed to register bundle identifier: The app identifier "org.chromium.ObjCNativeAPIDemo" cannot be registered to your development team because it is not available. Change your bundle identifier to a unique string to try again.
修改app identifier "org.chromium.ObjCNativeAPIDemo" "org.xxxx.ObjCNativeAPIDemo"

4、Undefined symbol: _CMFormatDescriptionGetMediaSubType
-framework CoreMedia


5、Undefined symbol: _AudioOutputUnitStart
-framework AudioToolbox 

6、Undefined symbol: std::__1::__libcpp_debug_function
is_debug=false


 
7、Undefined symbol: _CGRectZero
CoreGraphics.framework

8、Undefined symbol: webrtc::ObjCToNativeVideoRenderer(id)

Showing Recent Messages
Undefined symbol: webrtc::ObjCToNativeVideoCapturer(RTCVideoCapturer*, rtc::Thread*, rtc::Thread*)

libnative_api.a

9、Undefined symbol: webrtc::ObjCVideoEncoderFactory::ObjCVideoEncoderFactory(id)

Showing Recent Messages
Undefined symbol: typeinfo for webrtc::ObjCVideoTrackSource

libnative_video.a

10、
Undefined symbol: _OBJC_CLASS_$_RTCWrappedNativeVideoEncoder
libwrapped_native_codec_objc.a

11、

**dyld: Library not loaded: @rpath/WebRTC.framework/WebRTC**

**Referenced from: /private/var/containers/Bundle/Application/3CBB3D65-15DB-4033-A1B8-5316A2B98C80/WebRTC_new.app/WebRTC_new**

**Reason: no suitable image found.  Did find:**

**......**

12、Showing Recent Messages
Undefined symbol: _AVAudioSessionCategoryPlayAndRecord
AVFoundation.framework


13、Showing Recent Messages
Undefined symbol: _OBJC_CLASS_$_UIDevice

UIKit.framework


14、Showing Recent Messages
Undefined symbol: _OBJC_METACLASS_$_NSObject

Undefined symbol: __objc_empty_cache

Undefined symbol: _objc_moveWeak

Undefined symbol: _OBJC_CLASS_$_NSDictionary

Foundation.framework

15、This application or a bundle it contains has the same bundle identifier as this application or another bundle that it contains. Bundle identifiers must be unique.
Domain: com.apple.dt.MobileDeviceErrorDomain

多个动态库的时候,每个动态库工程的Bundle identifiers需不一样

16、error: unknown type name 'NSString'

一、

 二、

    add_compile_options(-x objective-c++)
三、建议把这部分代码封装到.mm文件中

17、Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RTCAudioSession setConfiguration:active:error:]: unrecognized selector sent to instance 0x1073d2920'

这是不能导入category分类导致的,加上选项-all_load

18、

Showing Recent Messages
Undefined symbol: _CMCopyDictionaryOfAttachments

CoreMedia.framework

19、Showing Recent Messages
Undefined symbol: _CGSizeZero

CoreGraphics.framework

20、no visible @interface for XXX declares the selector YYY

.m或者.mm内部访问interface的某个method是可以的,但是在别的.m或.mm访问这个method就报此错误,解决方法.h文件中申明此方法

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/993618.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-21
下一篇 2022-05-21

发表评论

登录后才能评论

评论列表(0条)

保存